uwp

Disable left/right/up/down hotkeys in flipview

走远了吗. 提交于 2019-12-08 06:33:33
问题 How to disable right/left/up/down arrows hotkeys in flipview? I have a textbox on a flipview and when I move cursor using keyboard arrows and reach the end of textbox, it doesn't stop but flips the page which is annoying and is not applicable for my case. The same is true for cursor reaching the beginning of the textbox. I've tried different solutions, but none of them work. <FlipView x:Name="flipView" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsTabStop="False"> <FlipView

Running Background Audio in different pages of UWP App

喜欢而已 提交于 2019-12-08 06:33:31
问题 I am making a UWP App where I run Background Audio in the MainPage on a Button Click event. When I move to another page, there's also a different Media to play in Background Audio Task there. How can I stop the currently playing Task to run the other? Should I define something globally? Any help regarding this issue? Edit I am using this sample: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BackgroundAudio While the backgroundAudio of the first Page is running, I

Map Control won't show up UWP XAML

旧街凉风 提交于 2019-12-08 06:24:17
问题 I'm trying to run a simple UWP application on my PC to test the Map Control, using the guidelines in: https://msdn.microsoft.com/en-us/windows/uwp/maps-and-location/display-maps#get-and-set-a-maps-authentication-key I have obtained a map key from Bing Maps Dev Center and assigned it to the map control. However, in the designer the control is shown up with a "This element is enabled only when the application is running" message. When I run the application, nothing is displayed on the

UWP trial version and products purchase that make full version with expiration

旧时模样 提交于 2019-12-08 06:11:43
问题 I'm working with UWP and trying to make the app with a trial version (1 month) and products purchase that make full version with expiration (1 month and 1 year). The general idea is, when the user downloads for first time the app, he has a trial period of 1 month with ads. After the month of trial version the app asks that need to buy a product with a periord of time and with this remove adds. The problem is that I don't know how to make at same time the buy of full version and product

UWP FolderPicker window opens but is frozen

懵懂的女人 提交于 2019-12-08 06:03:35
问题 The basic idea is I have a UWP app pulling user data from a json file saved locally, and at various times it may pull that full list of objects from the file, but it always checks that the user has set the location for the data, and if not, prompts via a FolderPicker for the user to set the location. In this case, I have combobox that helps filter the objects after selecting a criteria and entering text. Here's the call stack: UWPMiniatures.exe!UWPMiniatures.Data.MiniDAL.SetSaveFolder() Line

My UWP app won't read a txt file [duplicate]

浪尽此生 提交于 2019-12-08 06:02:30
问题 This question already has answers here : Windows 10 Universal App File/Directory Access (6 answers) Closed 2 years ago . I was wondering if anyone would know how to get an Universal Windows app to read a txt file. StreamReader lezer = new StreamReader(@"C:\Users\LotteDiesveld\Documents\Visual Studio 2015\Projects\Jaar 1\Periode 2\OIS 12\Eindopdracht\Personen.txt"); tbPersonen.Items.Add(lezer.ReadToEnd()); I've also tried this StorageFile file = await StorageFile.GetFileFromApplicationUriAsync

Build OpenCV for UWP

自闭症网瘾萝莉.ら 提交于 2019-12-08 05:40:42
问题 I'm currently struggling to build OpenCV for the UWP. I already googled quite a lot and found Microsoft's OpenCV Github Repo which tecnically should do the magic. However, this repo and pretty much everything else I found in this regard are outdated (Visual Studio 2015, old OpenCV versions etc.). I need to use OpenCV 3.3 because it's a cross platform project and I don't want to recompile everything else solely because of an outdated git repo. Can anyone explain the process of building OpenCV

UWP: Why can I exceed the CPU quota with my background task (using TimeTrigger)?

…衆ロ難τιáo~ 提交于 2019-12-08 05:34:05
问题 In my UWP app I have a background task, triggered by a TimeTrigger. In the code of the background task I have this snippet ("first activity" and "second activity" in my example consume hardly any resources): var deferral = args.TaskInstance.GetDeferral(); await Task.Run(async () => { //... first activity await Task.Delay(TimeSpan.FromSeconds(90.0)); //... second activity, 90 seconds later }); So my questions are: Why does the above code work, as the documentation clearly says "Background

How to launch .exe app with parameter uwp

≡放荡痞女 提交于 2019-12-08 05:28:52
问题 I know we can use LaunchFullTrustProcessForCurrentAppAsync(String) method and <desktop:Extension Category="windows.fullTrustProcess" Executable="fulltrustprocess.exe"> <desktop:FullTrustProcess> <desktop:ParameterGroup GroupId="SyncGroup" Parameters="/Sync"/> <desktop:ParameterGroup GroupId="OtherGroup" Parameters="/Other"/> </desktop:FullTrustProcess> to launch and send parameter to win32 app. But my big question is: How to receive that parameter in my win32 app (in my case win32 app is my

How can I filter List property

半世苍凉 提交于 2019-12-08 05:22:30
问题 On my View I have a AutoSuggestBox(searchfield) and ListView, my ListView's ItemSource is bounded to my VM Class property: private Class1 _searchMatches; public Class1 SearchMatches { get { return _searchMatches; } set { this.Set(ref _searchMatches, value); } } On My Class1 I have a LoadItems Task: async Task> LoadItems() var stocks = _response.products? .Select(s => new MyClass(PLService.DtoToModel(s))) .ToList(); var items = stocks.GroupBy(p => p.productModel.Description) .Select(p => p