win-universal-app

bring uwp app in foreground

怎甘沉沦 提交于 2019-12-30 13:32:54
问题 I found posts about how to detect if the app runs in foreground. Is it possible to bring my UWP app to the foreground (when it runs in the background) somehow? Maybe it's possible with a background task? 回答1: This is how I got it to work for UWP running on Windows 10: In your manifest create a protocol declaration (insert Name and Display name meaningful to your app) In App settings for the protocol change the Desired view to Use Half Use the Launcher to call your registered protocol whenever

bring uwp app in foreground

北城以北 提交于 2019-12-30 13:32:14
问题 I found posts about how to detect if the app runs in foreground. Is it possible to bring my UWP app to the foreground (when it runs in the background) somehow? Maybe it's possible with a background task? 回答1: This is how I got it to work for UWP running on Windows 10: In your manifest create a protocol declaration (insert Name and Display name meaningful to your app) In App settings for the protocol change the Desired view to Use Half Use the Launcher to call your registered protocol whenever

Text input in message dialog? ContentDialog?

£可爱£侵袭症+ 提交于 2019-12-30 04:04:20
问题 I am wondering what is the best way to allow a user to input text into a MessageDialog in a Windows 10 universal app.(Forgot password system). From the research I've done this doesn't seem possible with a MessageDialog but can be accomplished with a ContentDialog. So far I've found this site which explains roughly how to use the ContentDialog, but not with text input, and and this article on MSDN which does show how to use a textbox with a ContentDialog but the method shown seems quite

Text input in message dialog? ContentDialog?

喜你入骨 提交于 2019-12-30 04:04:10
问题 I am wondering what is the best way to allow a user to input text into a MessageDialog in a Windows 10 universal app.(Forgot password system). From the research I've done this doesn't seem possible with a MessageDialog but can be accomplished with a ContentDialog. So far I've found this site which explains roughly how to use the ContentDialog, but not with text input, and and this article on MSDN which does show how to use a textbox with a ContentDialog but the method shown seems quite

DataPackage.SetDataProvider doesn't wait (unlike its documentation states)

≡放荡痞女 提交于 2019-12-29 09:56:14
问题 DataPackage.SetDataProvider's documentation states: Use the SetDataProvider method when your app ... does not want to supply the data until the target app requests it. But when I run the following code it calls the callback method immediately. static void CopyToClipboardReference(string s) { DataPackage dataPackage = new DataPackage(); reference = s; dataPackage.SetDataProvider(StandardDataFormats.Text, CopyToClipboardAction); Clipboard.SetContent(dataPackage); } static string reference;

Binding Symbols in a ListBox

人盡茶涼 提交于 2019-12-29 02:07:46
问题 I want to use some items in Segoe MDL2 Assets as icons for a menu driven off a collection. I have my collection defined NavItems = new ObservableCollection<NavItem> { new NavItem {Title = "Sign in", Icon="", ClassType = null }, new NavItem {Title = "Settings", Icon="", ClassType = typeof(Settings) } }; In my xaml I have a listbox defined as <ListBox ItemsSource="{Binding NavItems}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" Height="24"> <ContentControl

Can't open Package.appxmanifest in Visual Studio 2015

青春壹個敷衍的年華 提交于 2019-12-28 18:02:42
问题 I started porting my app to Windows 10 Universal App today, started as a blank project. However I can't open the Package.appxmanifest file in Visual Studio, even when I right-click and select View Code (F7). It says "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." Any solution for this? 回答1: I fixed it by removing the Apache Cordova Tools Package. 回答2: You are hitting by a known bug that we have fixed it for new installs.

Windows Universal App Fullscreen Button

放肆的年华 提交于 2019-12-28 05:52:10
问题 Some Apps in the Windows Store have a Fullscreen button additional to the minimize, maximize and close button in the Titlebar. This button looks similar to the exit Fullscreen button that every App has in the Titlebar if the Fullscreen is active. Is that a system control and if how can I use it in my C# Universal App? 回答1: You'll have to use the Window.SetTitleBar method to achieve your desired behavior. Therefore, you'll need to accomplish a few steps: First, enable the view to extend into

Photo capture on Windows Store App for Windows Phone

ぐ巨炮叔叔 提交于 2019-12-27 19:13:43
问题 Well, my question is simple: How do I capture pictures with a Windows Store App for Windows Phone 8.1 , using the camera? The samples on MSDN use Windows.Media.Capture.CameraCaptureUI , which is not usable on Windows Phone, or are for Silverlight . I can't find any doc or sample specifically for Windows Phone app using Windows Runtime. If someone knows, or even have the doc for this, I would be glad. 回答1: In WP8.1 Runtime (also in Silverlight) you can use MediaCapture. In short: // First you

Can't loaded Package.appxmanifest in Visual Studio 2015

半世苍凉 提交于 2019-12-25 18:34:14
问题 I use Visual Studio 2015 in Windows 10. I create universal app for Windows 8.1. I need to open the file Package.appxmanifest (for Windows Phone 8.1). I can only see message - "loaded", but manifest editor is not loaded. If I created app for Windows 10 - manifest file is opened. I read this topic. I try reinstall “Universal Windows App Development Tools” and install KB3073097 update, but it did not help. 回答1: This is issue is completed. I installed the service pack 1 for visual studio 2015. 来源