uwp

How Best to Use UWP FullTrustProcessLauncher to Launch Seperate Unity Game

偶尔善良 提交于 2021-01-29 06:40:51
问题 I am working for a client who wants a UWP Portal App and a Pac-Man clone game that can be launched from inside the Portal App. I set up the FullTrustProcessLauncher capability in the UWP App to handle launch the exe for the game. I also had to add a post-build item to copy the exe and accompanying data folder to the AppX folder of the build. The FullTrustProcessLauncher fires the exe fine, but I keep getting the "Data folder not found error". So my questions are this: 1. Why does it keep

Disable pointer mode for webview in Xbox UWP

…衆ロ難τιáo~ 提交于 2021-01-29 04:24:55
问题 Is there a way to disable pointer mode for WebView in an Xbox UWP app? I cannot use the RequiresPointer property since WebView is extended from FrameworkElement and not from Control . This is my sample XAML: <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <WebView Source="http://stackoverflow.com/" Height="300" Width="500" /> </Grid> Please find the pointer marked in the image below. I have provided RequiresPointerMode = ApplicationRequiresPointerMode.WhenRequested; in

Disable pointer mode for webview in Xbox UWP

感情迁移 提交于 2021-01-29 04:23:41
问题 Is there a way to disable pointer mode for WebView in an Xbox UWP app? I cannot use the RequiresPointer property since WebView is extended from FrameworkElement and not from Control . This is my sample XAML: <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <WebView Source="http://stackoverflow.com/" Height="300" Width="500" /> </Grid> Please find the pointer marked in the image below. I have provided RequiresPointerMode = ApplicationRequiresPointerMode.WhenRequested; in

ItemsControl with VirtualizingStackPanel disables horizontal animations in ScrollViewer

為{幸葍}努か 提交于 2021-01-29 03:36:29
问题 I'm building a custom XAML control for a UWP app that relies heavily on a ScrollViewer with snap points. I would really like the content that is bound to the control to be virtualized, so I'm using an ItemsControl. However, when I use a VirtualizingStackPanel in the ItemsControl, and then call ChangeView() on the ScrollViewer to a specific HorizontalOffset, the animation effect when scrolling to the new offset is disabled (it just jumps directly to the offset). If I simply replace the

How to get the event when clicking the microsoft ad in uwp

删除回忆录丶 提交于 2021-01-29 03:01:26
问题 I'm using Microsoft Advertising SDK for xaml. And my app can show the ad now. But I want to know the event when user click the ad. None of the following event worked. <ads:AdControl x:Name="adAd" Grid.Row="3" ApplicationId="" AdUnitId="" Width="300" Height="250" AdRefreshed="OnAdRefreshed" ErrorOccurred="OnErrorOccurred" Tapped="OnAdTapped" OnPointerDown="OnAdPointerDown" PointerPressed="OnAdPointerPressed"/> 回答1: None of the following event worked. Actually, you could not use the above event

How to display data from Woocomerce Api call?

谁说我不能喝 提交于 2021-01-28 21:21:36
问题 I have UWP app which downloads data from woocomerce. RestAPI rest = new RestAPI("http://simplegames.com.ua/wp-json/wc/v1/", "ck_9d64c027d2c5f81b8bed3342eeccc6d337be813d", "cs_60697b1e6cbdeb8d62d19e0765e339f8e3334754"); WCObject wc = new WCObject(rest); //Get all products var products = await wc.GetOrders(); Debug.WriteLine(products); I try to display data to Console. Debug shows name of method, how I can show data that I downloaded? 回答1: So, let's start //Get all products var products = await

Using AudioRender device as Input for AudioGraph UWP

烈酒焚心 提交于 2021-01-28 20:24:31
问题 I have a fully functional AudioGraph system in place for a realtime voice chat. You can select the AudioCapture and AudioRender devices before and during the chat however I'd also like to be able to use Audio from the AudioRender devices for input on the AudioCapture graphs. How can I go about that? I currently have tried just selecting the device with the device Id however it gives the error: "DeviceNotAvailable" . for CreateAudioDeviceInputNodeResult result = await ingraph

How can i set default language of UWP app?

喜欢而已 提交于 2021-01-28 13:47:10
问题 I have 2 languages. en-US and ru-Ru When i set Default Language to ru-RU i got the error: PRI257: 0xdef00522 - Resources found for language(s) 'ru-ru,en-us' but no resources found for default language(s): 'ru-RU'. Change the default language or qualify resources with the default language. What is wrong? 回答1: I had the same issue: Resources found for language(s) 'nl-be,en-us' but no resources found for default language(s): 'nl-be,en-us' . So it complains about finding resources, it doesn't

How can i set default language of UWP app?

梦想与她 提交于 2021-01-28 13:43:15
问题 I have 2 languages. en-US and ru-Ru When i set Default Language to ru-RU i got the error: PRI257: 0xdef00522 - Resources found for language(s) 'ru-ru,en-us' but no resources found for default language(s): 'ru-RU'. Change the default language or qualify resources with the default language. What is wrong? 回答1: I had the same issue: Resources found for language(s) 'nl-be,en-us' but no resources found for default language(s): 'nl-be,en-us' . So it complains about finding resources, it doesn't

Google Cloud Speech API for UWP application

梦想的初衷 提交于 2021-01-28 13:13:13
问题 I'm trying to develop a Speech to Text UWP application (Universal Window Platform) which get voice from microphone and steam to Google Cloud Speech Service. But it seems that Google cloud Speech API has not supported UWP application. The error below occurred when I install client library to my project using Nuget: Install-Package : Package Google.Cloud.Speech.V1 1.0.1 is not compatible with uap10.0.10240 (UAP,Version=v10.0.10240) / win10-x86. Package Google.Cloud.Speech.V1 1.0.1 supports: -