win-universal-app

How to rotate image placed on a Mapcontrol

坚强是说给别人听的谎言 提交于 2019-12-11 05:56:56
问题 The issue I've got an application that tracks vehicles on a map. However I cannot get the little buggers to rotate in the direction of their motion. Basically, all of them are going sideways! Ugh! The code Image vehicleImage = new Image { //Set image size and source }; RenderTransform rotation= new RotateTransform{Angle = X}; vehicleImage.RenderTransfrom = rotation; _mainMap.Children.Add(vehicleImage); MapControl.SetLocation(vehicleImage, _position); The Image, placed on the map, seems to

Is it possible to change SplashScreen background at runtime - or to change color visible when user resize app window?

做~自己de王妃 提交于 2019-12-11 05:49:57
问题 On Package.Appmanifest we can define SplashScreen background color that is used for: 1) SplashScreen background - pretty obvious 2) to fit the space between new window border and not (yet) resized content when user is resizing the app window If you don't know what I am writing about under 2) - just run Xbox app (or any other written with UWP), grab window border and then quickly move the window border back and forward. The problem is that I would like to have two separate colors for that.

UWP: Popup MaxWidth

亡梦爱人 提交于 2019-12-11 04:25:31
问题 I have a Popup which contains an ItemsControl (I can use ListBox if needed) which its items are arranged horizontally. Since the total width of the items can exceed the width of the screen, I need to limit the size of the popup width. My question is how can I limit the size of the popup? I've tried to use MaxWidth, but it doesn't work :( <Popup x:Name="puSoldItems" IsOpen="False" IsLightDismissEnabled="True" MaxWidth="{Binding ActualWidth, ElementName=_This}" ScrollViewer.HorizontalScrollMode

Why am I getting a “package could not be registered” deployment error on Windows 10 UWP?

百般思念 提交于 2019-12-11 04:07:51
问题 I have an application targetted for Windows 10 and the UWP. The application correctly runs for x86 and x64 but when I try to run it on a mobile device targetting ARM on a Nokia Lumia 820 I get an error message during deployment: DEP0001 : Unexpected Error: Package could not be registered. (Exception from HRESULT: 0x80073CF6) There are other questions relating to this error that suggest it could be an issue with shared user certificates or that you can't have Audio and Device use in the same

How do I set the IP Address of a device using Windows Universal App?

落爺英雄遲暮 提交于 2019-12-11 04:02:30
问题 I have a Raspberry Pi 2 with Windows 10 ioT installed. How do I set the IP Address statically in code? 回答1: You can do this by connecting remotely to your device via Powershell and running "netsh". You can perform a variety of tasks using the Netsh command-line utility, including configuring the IP addresses of network adapters in Windows. Here’s how to configure a static IP address: netsh interface ip set address "connection name" static 192.168.0.101 255.255.255.0 192.168.0.1 NOTE: The

How to debug app hanging on Windows Phone 8.1

穿精又带淫゛_ 提交于 2019-12-11 03:58:20
问题 I am developing a Windows Phone 8.1 Application. My app completely hangs on launch and doesn't move/scroll on user input. However, if I force close my app and re-open, it seems to work fine. So there are 2 outcomes, both happens sometimes, but inconsistently The app completely hangs and ignores all user input The app works properly While checking the output window I observed that when the first scenario occurs, my output window displays a series of thread exits as shown below The thread 0x680

Application configuration files for Windows Universal app

假如想象 提交于 2019-12-11 03:57:48
问题 I have developed a Windows 8.1 Universal app for tablets and phones. Is there any equivalent of App.config file what we used to have in desktop applications in win 8.1 tablets and phones ? Searching over the net revealed nothing. 回答1: No direct equivalent, you need to create something similar by yourself. 回答2: Try to use ApplicationData.Current.LocalSettings in Windows.Storage namespace. Please refer to: Loading and saving settings 来源: https://stackoverflow.com/questions/30730825/application

Push Notification Background Task Crashes Windows Phone 8.1 Emulator/Device

前提是你 提交于 2019-12-11 03:46:06
问题 Has anyone else had problems running the push notification background task sample (Javascript) on the WP 8.1 emulator? Sample link is here. When I run the sample app, register the background task, then send a raw notification via the notification simulator, the entire emulator crashes. See images below: I'm wondering if anyone else has experienced this issue, or knows how to fix it. Maybe I'm doing something wrong, but it seems that an official sample application should work out of the box...

using System.Speech.Synthesis with Windows10 universal app (XAML-C#)

╄→гoц情女王★ 提交于 2019-12-11 03:43:29
问题 I tried to use the SpeechSynthesizer from System.Speech.Synthesis because it seems more comprehensive than the one I used before (Windows.Media.SpeechSynthesis) : I want to be able to set the volume, the gender of the voice, ... Besides, the french prononciation has some bugs, so I wanted to check if System.Speech was better. I added the reference, but the Build gives this error and I can't fix it : Cannot find type System.MarshalByRefObject in module CommonLanguageRuntimeLibrary. 回答1: There

Access all files in folder from FileActivated file

半世苍凉 提交于 2019-12-11 02:53:12
问题 I write a Windows 10 Universal App like the default Photo App in C#. The Photo App allows to show all images in the directory where the user opened the file with the Photo App. But when the user opened a file with my App I get only the FileActivatedEventArgs with allows to display the file the user opened. I found no solution to show the user the other files from the directory of this file too. I think the problem is to get the permission to access that files because when the folder of the