uwp

DesktopAppConverter (DAC) says the expanded image is invalid, when I try to convert my app

拥有回忆 提交于 2019-12-10 10:44:35
问题 I have downloaded the .wim file that matches my Windows version (14393) and gone through the process of setting up the converter. So, I have the converter app running on my machine. When I attempt to run a conversion, I get error message E_EXPANDED_BASEIMG_INVALID. I have tried to get rid of the expanded image by run DAC with the -Cleanup ExpandedImage parameter, but it fails to clear it. Have you managed to replace the expanded image? The files are quite large and I cannot keep adding

Using Default Credentials in System.Net.HttpClient request in UWP

為{幸葍}努か 提交于 2019-12-10 10:29:26
问题 We are porting our Windows 8.1 app to UWP and are experiencing an issue with sending default user credentials for single sign-on. It seems that credentials are not being set, despite setting UseDefaultCredentials = true on the handler. This exact code was working in Windows 8.1. using (var client = new HttpClient(new HttpClientHandler() { UseDefaultCredentials = true })) { // client._handle.Credentials is null // This call fails authentication with a 401 // and Fiddler shows no attempt to

Is it possible to share data between users in a Windows Store App?

僤鯓⒐⒋嵵緔 提交于 2019-12-10 10:18:14
问题 I'm pretty sure that I know the answer to this question (A big fat NO), but is it possible to share downloaded data between the same application but multiple users (Windows login, not Microsoft Store users) in a Windows Runtime environment? The local data folder is relative to each login user, so this seems impossible at first glance. It would be a huge waste for each user to have to download all of the content for the application since it is between 700MB - 1GB of content per app. 回答1: This

Make a POST request with HttpClient in UWP(W10)

好久不见. 提交于 2019-12-10 10:13:04
问题 I'm using the Universal Windows Plataform for making a App and I want to ask how to post data like (id=1) to the server with httpclient. I know that there is some tutorials on internet, but many of them are for Windows 8.1 and don't work in 10. 回答1: If you want to handle HTTP request in UWP, you need a webservice to support it. If you make a web API project in your solution, then you can use the actions inside controllers to handle the POST request. More reading about web API: click here

How to restart an app in UWP?

给你一囗甜甜゛ 提交于 2019-12-10 10:11:20
问题 Currently in my UWP application, I provide a way to change the app theme. But in order for the change to be effective, the user has to manually close the app and restart it. I'm looking for a way to do it automatically, ie, restart the app programmatically. Is it even possible? thank you. 回答1: According to a recent blog post, there is a new API for this "from Build 16226 onwards, along with the corresponding SDK." The new static RequestRestartAsync(String) method and overloads on

Can't achieve the same behavior in NavigationView's item template across Windows 10 Versions

时光怂恿深爱的人放手 提交于 2019-12-10 09:26:40
问题 I'm very frustrated trying to achieve the same visual behavior in my UWP app. Here is my problem: I’m using a NavigationView and I want to supply the NavigationViewItem(s) from the ViewModel. I also want to supply headers, so I create an ICollectionDataItem interface and implement ViewModels for both the NavigationViewItem and NavigationViewItemHeader so that the Main View Model supplies a list of ICollectionDataItem to the NavigationView and a DataTemplateSelector do the magic. This is how

How to silent install an UWP appx?

这一生的挚爱 提交于 2019-12-10 05:23:50
问题 I develop an UWP appx, It could be installed in a cmd.exe prompt: C:\test>myapp.appx but a windows GUI pop up during installtion. Is there any method to install it with a Silent parameter like as: C:\test>myapp.appx /silent (or /s) in order to inhibit the GUI from pop up ? Thanks! 回答1: Microsoft provides powershell cmdlets for controlling AppX and MSIX packages. The command you need is Add-AppxPackage. PS C:\> Add-AppxPackage -Path C:\Users\user1\Desktop\MyApp.appx 来源: https://stackoverflow

UWP, XAML - making CheckBox empty

偶尔善良 提交于 2019-12-10 04:04:53
问题 How can I make CheckBox empty? I only need the tick. Now it takes additional empty space, like here: <CheckBox Background="Aqua" Margin="0,0,0,0"/> (I added color to look how much space this control takes (that empty space causes alligning problems)). I just need the tick rectangle, I don't want the empty space. How can I achieve that? Setting Margin to zeros and Content to "" doesn't work. 回答1: If you just want to remove the empty space on the right, you can do it by Adding Padding and

UWP - zooming image (with pinch zoom and double tap), with Flip View

一世执手 提交于 2019-12-10 03:59:49
问题 I need to show images (using Flip View controll) and allow users to zoom them (with pinch zoom and with double tap) and drag zoomed image. I would like it to be compatible with Flip View (I mean it shouldn't ovveride draging gesture). What is the best way to achieve that? 回答1: I need to show images (using Flip View controll) and allow users to zoom them (with pinch zoom and with double tap) and drag zoomed image. We can use the ScrollViewer control and UIElement.DoubleTapped event to allow

Using SQLite-NET with UWP

拟墨画扇 提交于 2019-12-10 03:54:18
问题 I downloaded the package from NuGet and still there's no SQLite.cs neither SQLiteAsync.cs added to the project, If SQLite-NET is still not supporting VS 2015 RTM, Any possible alternatives? Note that I tried SQLite.NET-PCL and still the same problem. 回答1: SQLite.NET-PCL shouldn't add those two classes directly to your project files. Did you download the right SQLite.NET-PCL via NuGet? (there's a huge mess when you search for SQLite.NET on NuGet so it's easy to get confused and install the