win-universal-app

UWP PivotItem ListView TabChange issue

戏子无情 提交于 2019-12-12 03:29:48
问题 I am encountering strange problem. I have Pivot in my Xaml like this: <Page.Resources> <ResourceDictionary> <SolidColorBrush x:Key="NavButtonPressedBackgroundBrush" Color="White" Opacity="0.3" /> <SolidColorBrush x:Key="NavButtonCheckedBackgroundBrush" Color="White" Opacity="0.2" /> <SolidColorBrush x:Key="NavButtonHoverBackgroundBrush" Color="White" Opacity="0.1" /> <Style x:Key="NavRadioButtonStyle" TargetType="RadioButton"> <Setter Property="Background" Value="Transparent"/> <Setter

Speech is not being recognized with default dictation grammar in my UWP application.

删除回忆录丶 提交于 2019-12-12 03:09:01
问题 Speech is not being recognized with default dictation grammar in my UWP application. However, it is perfectly recognized when I use programmatic list constraint. Below is the speech recognition part of my code for reference. If I do not comment the 5th line, this works fine. Am I doing something wrong below: speechRecognizer = new SpeechRecognizer(); bool PermissionGained = await CheckMicrophonePermission(); if (PermissionGained) { //speechRecognizer.Constraints.Add(new

How to implement AES Encrypt (AesManaged Rfc2898DeriveBytes) in Windows Runtime

瘦欲@ 提交于 2019-12-12 03:07:07
问题 I met a blocking issue when I tried to immigrate my project from Windows Phone Silverlight 8.1 to Windows Runtime. In Windows Runtime the AES-encrypted string is not the same as the one on Silverlight before. In Silverlight: public static string EncryptAES(string encryptString) { AesManaged aes = null; MemoryStream ms = null; CryptoStream cs = null; string encryptKey = "testtest123"; string salt = "abcabcabcd"; try { Rfc2898DeriveBytes rfc2898 = new Rfc2898DeriveBytes(encryptKey, Encoding

Dynamically update collection of MapIcons, update process gets out of sync?

两盒软妹~` 提交于 2019-12-12 03:02:09
问题 Im creating UWP app which displays collection of MapIcons on map. MapIcon images are dynamically created from XAML and rendered to bitmap. MapIcon's are updated every few second. There can be around 200 MapIcon on map. The problem is that my MapIcon update code gets somehow out of sync, MapIcon images are not correct for spesific MapIcon/plane. E.g. some planes get previous plane image etc. Im storing my MapIcons to separate _planesDictionary ( Dictionary<string, MapIcon> ), the idea is to

Real time GPS UWP

半城伤御伤魂 提交于 2019-12-12 02:51:31
问题 I really want to know how do I can update the position of the user in the map while the UWP app was running in bakground Here is my code right now private async void PinPoints() { //Pin point to the map Windows.Devices.Geolocation.Geopoint position = await Library.Position(); double lat = position.Position.Latitude; double lon = position.Position.Longitude; //Geoposition alttest = await Library.Temp(); //alt = alttest.Coordinate.Altitude; DependencyObject marker = Library.Marker("" //+

Exception when supsending/resuming on W10M - Value does not fall within the expected range

六眼飞鱼酱① 提交于 2019-12-12 02:44:54
问题 I am using Template 10 NuGet Version 1.1.4 and am seeing the following exception when I perform the below actions on my Windows 10 Mobile device: Run the App Press the Windows Home button (takes me back to the Start screen) Run the App again What happens is that the app fails to start, with an exception of: Value does not fall within the expected range. Call Stack: at Windows.UI.Xaml.Controls.ContentControl.put_Content(Object value) at Template10.Common.BootStrapper.NavigationServiceFactory

Dispose of a BitmapImage

主宰稳场 提交于 2019-12-12 02:44:00
问题 I have a Windows Universal App which uses several BitmapImage s. I'm used to wrapping Bitmap s (in Winforms) in using s or using Dispose , but I've discovered that BitmapImage doesn't have a Dispose method. Is there any way to release their resources earlier than waiting for the GC to do that? 回答1: Here's a good solution : Memory consumption of BitmapImage/Image control in Windows Phone 8 . it's like a extension ' Dispose ' method for the BitmapImage And yes, GC.Collect() is good way .. 来源:

How to create drop down menu foreach row in gridview onclick (UWP windows 10 application) [closed]

旧时模样 提交于 2019-12-12 02:15:15
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . I want to click on any row in gridview then a menu appears under the clicked row any help please ?? here is my code <GridView.ItemTemplate> <DataTemplate x:DataType="data:RoomInfo" x:Name="gridDataTemplate"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center

Universal app in windows : In Windows RT app not displayed transparent tile

佐手、 提交于 2019-12-12 02:02:50
问题 I have just started to develop in universal app. I have developed app in Windows 8 store apps and also developing Windows Phone 8 and Windows Phone 8.1 (SilverLight) Apps. Question is related to universal app in Windows and Single UI which is created in App. Share folder. 1. I have a transparent Image as Icon but still it display white background check below images I - > Package.appxmanifest II - > Display in start menu . 回答1: You can't have transparent tiles in Windows Store apps. 来源: https:

Universal App NTLM working for Windows Store, but not Windows Phone

给你一囗甜甜゛ 提交于 2019-12-12 01:44:44
问题 I am building a Universal App that accesses a web API for data. When I run the authentication piece in the Windows Store app, everything works and I get a 200 response on my login call (an HTTP POST call to _url2 in the code below) When I run the exact same code from the Windows Phone emulator, I get a 401 Unauthorized. Here is the code I'm using to access the service: var handler = new HttpClientHandler { AllowAutoRedirect = true, PreAuthenticate = true, CookieContainer = _cookies,