windows-10-universal

How can I lock the screen from within the Windows 10 Mobile app?

北城余情 提交于 2019-12-19 11:29:16
问题 I was searching through UWP API Reference and I didn't find any way how to Lock the device from within app or with Secondary Tile. And I am frustrated, because there is a proof that it can be done. I don't want to make any advertisements here but for example this app: https://www.microsoft.com/en-us/store/apps/quicktiles/9wzdncrfhzts Can create secondary tile that just locks the screen. How can I do it myself? Thanks. 回答1: I don’t think it is possible with the UWP libraries. I tried to do an

make a content Dialog movable like the one in the Groove app

你说的曾经没有我的故事 提交于 2019-12-19 10:49:14
问题 I have created a ContentDialog to apply a Style (that I can't apply with a Message Dialog and a PopUp),but I am having problem with it,it's not movable or I can't close it like the Frame that appears when I click on the button "Connexion"in the Groove App have you please any idea,which part I can modify in the ContentDialog style to get this ContentDialog movable and close it like the image on top I work on a universal app 回答1: have you please any idea,which part I can modify in the

Xamarin Form - How to make UI Responsive in UWP

我是研究僧i 提交于 2019-12-19 05:08:18
问题 I am developing the DMS application in uwp desktop application. I have developed the design.but my designs are not responsive.I am gone through so many UI responsive articles but i am not able to make the ui responsive.:( I am uploaded my one project module please go through it and let me know whats wrong in it.I want to make ui responsive form login page to add new user. link Download the UWPUIResponsive zip file. thanks in advance.:) 回答1: Xavier Xie - MSFT's reply is correct. And I checked

Win 10 Universal App with Cordova trying to load flash

a 夏天 提交于 2019-12-18 21:14:20
问题 I'm building a cross-platform Cordova app with Visual Studio 2015 and tools for Apache Cordova. Therefore I'm using the Blank Cordova App (with TypeScript) from Tools for Apache Cordova. Everything seems to work fine, except there is a strange error in the JavaScript Console when running the App on Windows 10: APPHOST9603: "Can’t load the ActiveX plug-in that has the class ID "{D27CDB6E-AE6D-11CF-96B8-444553540000}". Apps can't load ActiveX controls." This is kind of strange because I'm not

UWP: how to start an exe file that is located in specific directory?

寵の児 提交于 2019-12-18 13:34:37
问题 I am trying to start an exe that is located in C:/Program Files (x86)/App from UWP app. How can I do this. I can start exe file by using Windows Desktop extension for UWP, add Hide Copy Code <Extensions> <desktop:Extension Category="windows.fullTrustProcess" Executable="Assets\app.exe" /> </Extensions> to Package.appmanifest and call this await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync(); in main class. But I need to add app.exe to Assets directory of project My

Timetrigger not firing backgroundtask UWP

心不动则不痛 提交于 2019-12-18 09:23:12
问题 I have the same problem as this guy over here: UWP Timetrigger not working but I can't comment the question because my reputation is not high enough, so I'm creating a new question. As I said, I have the same problem. I registered the background task, but nothing happens. My background task is located in a seperate project (Runtime Component). So that's not the problem. This is the method I made to register the task: public static BackgroundTaskRegistration Register(string name, string

How to easily allow users to update Styles used be elements in XAML (UWP)

青春壹個敷衍的年華 提交于 2019-12-18 05:23:17
问题 This is for a Windows 10 UWP. I need to allow users to update values on Styles that are associated with elements used throughout the application (i.e allow users to change the font size of various textblocks, background color stackpanels etc.) . I currently have all my Styles in a separately file. My App.xaml is as below: <Application x:Class="MyTestApp.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Application

Communication between UWP and Non UWP app

回眸只為那壹抹淺笑 提交于 2019-12-18 04:08:46
问题 Is it possible to have communication between uwp and non uwp apps. My non-uwp is a background task which provides a service. I want to call that non-uwp service in uwp app. How to make that call? Is AppServiceConnection class available in non-uwp app? 回答1: Yes, non-UWP apps can use AppServices to communicate with UWP apps. There is a sample here: https://github.com/Microsoft/DesktopBridgeToUWP-Samples/blob/master/Samples/AppServiceBridgeSample_C%2B%2B/cs/Win32Process_CPP/Win32Process_CPP.cpp

Changing Theme in Windows 10 UWP App Programmatically

拜拜、爱过 提交于 2019-12-18 03:23:36
问题 I was able to change theme using this.RequestedTheme = ElementTheme.Dark; But what I need is the whole application level, since this one only change the theme of the current page to dark. Whenever I try this App.Current.RequestedTheme = ApplicationTheme.Dark; I always get this error An exception of type 'System.NotSupportedException' occurred in UWPApp.exe but was not handled in user code Is there such a way that I can change the whole application theme from Light to Dark or vice versa? I'm

Loading Html file in WebView in xaml in UWP from app data local folder

a 夏天 提交于 2019-12-17 18:56:56
问题 I have a requirement where I need to load an html file from app data folder in xaml WebView in UWP. Html file is also referencing different Js files in another folder ("99/js/"). Any one with UWP knowledge guide me. Thanks in advance I am using following code, Browser is my WebView. var Uri = new Uri("ms-appdata:///Local/Downloads/99/index.html"); Browser.Navigate(Uri); My folder structure in 99 folder is: udapte I am trying load html file in offline to WebView which is not loading same html