win-universal-app

Extracting specific File from archive in UWP

徘徊边缘 提交于 2020-01-06 08:14:09
问题 To save space I have zipped my books(in xml format) in my UWP Project. I want to Extract a file to my Local Folder based upon it's name. Till Now what I have done(This extracts all files) : ZipFile.ExtractToDirectory(sourceCompressedFile.Path, destinationFolder.Path); However this extracts all the files from my archive to my destination folder. I know this could be a trivial task using SharpZipLib but this is an inbuilt method and would help me reduce my app size . I simply want to extract a

Are apps launched by URI in a UWP app also sandboxed?

社会主义新天地 提交于 2020-01-06 08:13:59
问题 I inherited a UWP app and was asked to add a button to launch a 3rd party application. The 3rd party application is built with Qt and has an exe as the main program that launches a second exe that acts as a service. The UWP app is to be run on tablets running Windows 10. I created an installer that adds registry values for the URI for the 3rd party application so I can do URI activation (LaunchUriAsync method). If I change the target of the URI to a different application it works fine, so I

How to Programmatically Scroll UWP WebView?

青春壹個敷衍的年華 提交于 2020-01-06 02:21:30
问题 I'm making a simply UWP (Universal Windows 10 App) web app using a webview. How can I return on the top of the page clicking on a button? I can't find it on the MSDN. 回答1: You can use window.scrollTo(0,0) method, it is a JavaScript method that scrolls the document to position "0" horizontally and "0" vertically. You can interact with the content of the WebView by using the InvokeScriptAsync method to invoke or inject script into the WebView content. For example: <Grid Background="

How to change caret color in windows phone 8.1 universal app

好久不见. 提交于 2020-01-05 19:26:22
问题 How can I change textbox caret color in windows phone 8.1 universal app? in windows phone 8 we used TextBox.CaretBrush to change caret color. But this is missing in windows phone 8.1 WinRt. Is there are way to change caret color? 回答1: In Windows Phone universal app, we can't use CaretBrush any more. Windows Phone 8.1 (Silverlight) vs Windows Phone 8.1 But we can change background of TextBox when Focus and UnFocus , So the caret can be seen. 来源: https://stackoverflow.com/questions/25617692/how

XAML ListView ItemContainer Height

╄→尐↘猪︶ㄣ 提交于 2020-01-05 03:00:13
问题 I want to Change the Height of the ItemContainer and not the Height of the Item itself the Container is in a ListView What I want to Change: To Something like this: The structur of the Code Looks like this: <ListView> <ListView.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <TextBlock Text="{Binding A}" Grid.Column="0"/> <TextBlock Text="{Binding B}" Grid.Column="1"/> </Grid> </DataTemplate> </ListView

Error Installing Windows 10 development tools for Visual Studio 2015 RC on Windows 8.1

主宰稳场 提交于 2020-01-05 02:28:32
问题 I am running Windows 8.1 and I have installed Visual Studio 2015 Enterprise RC with Blend. I am trying to install the Windows 10 development tools for Visual Studio 2015 RC and getting the following error: ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Windows 10 SDK 10.0.10069 : The installer failed. User cancelled installation. Error code: -2147023294 Has anyone else gotten this error and found a solution to successfully install? 回答1: Through a

Return null in boolean to checkbox state converter in XAML

风流意气都作罢 提交于 2020-01-05 02:14:18
问题 I have a TaskStatus to Boolean converter that implements the IValueConverter interface in XAML for Windows Store Apps (universal apps). I have three task states and I enabled the indeterminate state in a checkbox using IsThreeState="true". Now although the IsChecked property seems to be a Boolean?, the converter always gets System.Boolean as target type. Whatever I return (null for example) always converts to false and therefore I can't get the third state in my checkbox. Is there a way to

Visual Studio 2015 can't build Windows 10 universal app?

僤鯓⒐⒋嵵緔 提交于 2020-01-04 17:50:53
问题 I was using Visual Studio 2015 RC and building Windows 10 App with no problem. Once I upgraded to Windows 10, I also upgraded my VS but after that I cannot run and build my Windows 10 app. I downloaded the VS 2015 here, when I chose custom install, there was no "Universal Windows App Development Tool" option as described here. I could only see a "Windows 8.1 and Windows Phone 8.0/8.1 Phone" option. What's wrong with my install? Am I downloading the wrong file? 回答1: I think the new tools just

Parsing Json in UWP

微笑、不失礼 提交于 2020-01-04 07:51:11
问题 I’m working on UWP and I’m trying to parse this Json but can't understand why this code can't work please anyone can check it with me need help. Thank you. And there is a problem in getting the list variable (List). Any help is appreciated. namespace testapi2 { /// </summary> public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); jsonCall(); } public async void jsonCall() { List<Result> listResult = new List<Result>(); var client = new HttpClient();

ListView UWP Drag Reorder doesn't fire Drop events

青春壹個敷衍的年華 提交于 2020-01-04 07:03:53
问题 I am attempting to reorder a ListView in my UWP project. <ListView Grid.Row="1" Name="List" Margin="12, 0, 12, 0" ItemTemplate="{StaticResource ListDataTemplate}" SelectionMode="None" IsItemClickEnabled="True" ItemClick="List_ItemClick" AllowDrop="True" CanReorderItems="True" ReorderMode="Enabled" DropCompleted="List_DropCompleted" /> In Code behind: private void List_DropCompleted(UIElement sender,DropCompletedEventArgs args) { UseManualOrder = true; } The UI Works great. I can drag and