uwp

restart via code on windows 10 uwp

跟風遠走 提交于 2019-12-21 20:47:16
问题 We've created a Windows 10 application that runs on tablets in Windows 10 kiosk mode. It works just fine, however, the wifi connection gets lost sometimes since the locations are very remote. We tried fixing the issue from the networking side, but when the devices lose and regain internet access the application will still hang as if it doesn't have internet access displaying a blank page. Where these devices are used, they are bolted into the wall to prevent theft. Which means if we want to

How does x:Bind compare with the classical Binding, put as concisely as possible?

假如想象 提交于 2019-12-21 20:47:09
问题 How is the compiled binding, x:Bind, different from the classical Binding, put as concisely as possible? 回答1: Compared with the classical binding you cannot use the following binding attributes with x:Bind : ElementName , RelativeSource , Source and UpdateSourceTrigger . Well, that almost sums up the limitations of x:Bind but x:Bind is powerful in its own right -- the notable one being compiled binding and hence the performance gain as a result. See last bullet point for another powerful

How to reference a UserControl from an external class library (through a NuGet Package)?

你。 提交于 2019-12-21 19:57:03
问题 Is it possible to reference and use a UserControl in UWP app project that resides in a UWP class library? I tried creating a UserControl in a class library but when I try to use it in the app I get: An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in App1.exe but was not handled in user code WinRT information: Cannot locate resource from 'ms-appx:///ClassLibrary1/MyUserControl1.xaml'. [Line: 10 Position: 6] Edit: Sample Page where I'm trying to use the MyUserControl1:

BackgroundTask UWP Windows 10 TimeTriggeredTask Example registered but never fires up

旧时模样 提交于 2019-12-21 19:43:36
问题 I am testing the Background Example with the Scenario4 and it never calls to Run, I am following the steps and that's what I see: 1.- After calling BackgroundTaskRegistration task = builder.Register(); The task has Trigger = null Does it should be the trigger specified before in builder.SetTrigger(trigger); ? 2.- In theory when I register a background task, it should appear in here EventViewer - BackgroundTaskInfrastructure but it doesn't, should appear here? 3.- To try to debug I Debug

Storing a BitmapImage in LocalFolder - UWP

被刻印的时光 ゝ 提交于 2019-12-21 19:30:10
问题 I'm trying to store a BitmapImage to the filesystem using C# on UWP. The image is downloaded from Facebook using the graph api and returned as a BitmapImage. That part works, and to retrieve the image (once I can store it, tested with pictures just dropped in the local folder) I'm using the following code: public static async Task<BitmapImage> GetProfilePicture(string userId){ BitmapImage profilePicture = new BitmapImage(); StorageFolder pictureFolder = await ApplicationData.Current

Cordova : How to diagnose ajax not working for UWP (windows store) application

泄露秘密 提交于 2019-12-21 17:31:25
问题 I have a simple Cordova application, where when built, and running as a Windows UWP application, has ajax calls are somehow being blocked my work network. I have asked this many times before, but thought would try to reword, as have never got any solutions. The application ajax calls work fine on my home machine, or whats seems to be most other networks. When it works, I can see all the output in Wireshark When on my work machine, connected to our work Network, I see absolutely nothing in

UWP ListView drag behavior for touch

帅比萌擦擦* 提交于 2019-12-21 14:31:11
问题 When using touch to trigger a drag and drop action for a ListView item, it would appear that the behavior has changed between WinRT (Windows 8/8.1) and UWP (Windows 10) apps. In WinRT, "tearing" an item to the left or right would cause it to get detached, initiating the drag behavior. In UWP, the user has to tap and hold an item for a short while, after which moving it initiates the drag action. My question is: is there a way to revert to/implement the old WinRT-style behavior? The new way is

Use Python alongside C# in Windows UWP app

烈酒焚心 提交于 2019-12-21 14:08:52
问题 I started writing an application in Python, but I now want to switch to C# and UWP. I know that you cannot write a UWP app in Python, but I am trying to see if I can write some code in Python and access that code from C#. For example, writing a class in Python that C# code can access as well. Is that possible? And if so, can Python access Microsoft's UWP APIs? The main code will not be written in Python; that would be impossible. But can interoperability between C# and Python exist, perhaps

Use Python alongside C# in Windows UWP app

假如想象 提交于 2019-12-21 14:07:10
问题 I started writing an application in Python, but I now want to switch to C# and UWP. I know that you cannot write a UWP app in Python, but I am trying to see if I can write some code in Python and access that code from C#. For example, writing a class in Python that C# code can access as well. Is that possible? And if so, can Python access Microsoft's UWP APIs? The main code will not be written in Python; that would be impossible. But can interoperability between C# and Python exist, perhaps

Windows 10 Universal Merged Dictionaries

a 夏天 提交于 2019-12-21 12:42:47
问题 So I have a Windows Universal Class Library that has a resource dictionary in it that I want to merge with my Windows 10 Universal Application's main resource dictionary in App.xaml. My App.xaml simply merges in my main Resource dictionary from the same assembly. <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles/Styles.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> Then from