uwp

SpeechRecognizer not work, COMException: Class not registered/ UWP App Windows IoT (10.0.10586) and Visual Studio 2015 Update 1

筅森魡賤 提交于 2019-12-06 10:37:24
After I have installed Windows IoT (10.0.10586) and Visual Studio 2015 with Update 1, I got COM-Exception when I use the SpeechRecognizer in Universal App on my Raspberry Pi 2 (with Windows IoT 10.0.10586). If I run the SpeechRecognizer UWP App on Windows 10 it works without any problems, the COM-Exception occurs only in Windows IoT (10.0.10586). With older version of Windows IoT and Visual Studio 2015 without Update 1 it works, too. Has anyone a solution for the problem? var speechRecognizer = new SpeechRecognizer(); var constraint = new SpeechRecognitionTopicConstraint

Change what devices a UWP app targets

旧街凉风 提交于 2019-12-06 10:32:34
I want to my Windows UWP app to target only specific devices e.g. desktop and mobile. How do I specify that my app should only target these devices? I have found nothing of interest in the Package.appxmanifest file, and project.json only specifies what SDK's the app should use. There are two ways you can do it. 1 . Right click Package.appxmanifest , and click View code , you can find the following code in the Package.appxmanifest . <Dependencies> <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" /> </Dependencies> You can modify the Name property to

MediaCapture StartPreviewAsync fails

霸气de小男生 提交于 2019-12-06 10:32:26
I am trying to start video preview capture from the camera in my UWP app but StartPreviewAsync throws an exception Sample Code: MediaCapture mc = new MediaCapture(); await mc.InitializeAsync(); await mc.StartPreviewAsync(); This error occurs because currently StartPreviewAsync requires a sink to output frames to. This can be fixed by creating a capture element in xaml to display the frames. <CaptureElement Name="captureElement"/> now code can be updated to display the preview to the screen MediaCapture mc = new MediaCapture(); await mc.InitializeAsync(); captureElement.Source = mc; await mc

System.BadImageFormatException in UWP with WPF desktop bridge package

廉价感情. 提交于 2019-12-06 10:31:21
问题 I''ve fully and detailed described problem and question in this topic System.NullReferenceException in AppServiceResponse and System.BadImageFormatException of UWP with WPF desktop bridge package, but still have no found answer, what can cause this failure. Topic link to Windows Dev Center above describes assembly, shows all used code with examples, including attempts to fix problem, and other details. So I will put only basic part of task in this stackoverflow topic to avoid text overload in

Xamarin.Forms: Localization of the UWP app

老子叫甜甜 提交于 2019-12-06 09:43:26
问题 If I run my app on an UWP device I get the following warning in the Output window: MakePRI : warning 0xdef00522: Resources found for language(s) 'en,de' but no resources found for default language(s): 'de-DE,en-US'. Change the default language or qualify resources with the default language. http://go.microsoft.com/fwlink/?LinkId=231899 Don't know if this is related, but I also get 1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2459,5):

How to convert UWP StorageFile to .NET FileInfo?

喜欢而已 提交于 2019-12-06 09:40:31
问题 Now that UWP supports .NET Standard 2.0, it has access to more of the System.IO namespace, including Fileinfo and DirectoryInfo. How does one convert an UWP StorageFile to a Fileinfo? And a StorageFolder to a DirectoryInfo for that matter? The naïve approach (get the StorageItem's full path and construct a Fileinfo using it) fails when trying to open the resulting Fileinfo, and I'd really like to get away from using PCLStorage if possible. 回答1: System.IO.File and System.IO.FileInfo have long

How to change SelectedBackground in ListViewItemPresenter inside a GridView

左心房为你撑大大i 提交于 2019-12-06 09:40:30
问题 I have a Clickable-Gridview insde a HubSection: <HubSection > <DataTemplate> <GridView IsItemClickEnabled="True" ItemClick="Hub_OnClick"> <RelativePanel > <TextBlock Text="NiceText" /> </RelativePanel> </GridView> </DataTemplate> </HubSection> Now everytime I've clicked on that hub, a blue-border will appear around the GridView (SelectedBackground). In LiveVisualTree it shows me, that the border is from a "ListViewItemPresenter" control inside the GridViewItem. Therefore I modified the style

Distributing private win app in UWP

◇◆丶佛笑我妖孽 提交于 2019-12-06 09:37:20
问题 SCENARIO I'm new in UWP tech and i would like to create and distribute my first UWP app. It's a company app so it won't be sold and it won't be public on the store. Then i will edit the app and i will deploy it again. I can't find docs about it. QUESTIONS Is there a particular process to do it (or it consists only of a copy of files - i read about powershell)? I already read Is the Windows App Store required for a UWP application? so you can avoid LOB solution. Moreover that post starts from

C# UWP LiveSKD and OneDrive access using FileOpenPicker

微笑、不失礼 提交于 2019-12-06 09:34:06
I'm developing a Universal Windows Platform app that allows a user to open and edit files using the FileOpenPicker. The idea is that the user can choose any file on their computer, including files located in their OneDrive folders. On Windows 10 Desktop, this is working perfectly. However, on a Windows Phone 10 device, the result is very different. When a user chooses a file with the picker, the file is downloaded to a local storage folder, and the user is able to edit the file. But when the file is edited, it is not synced back to OneDrive. According to https://dev.onedrive.com/ Picker SDKs

uwp commandbar always show label

冷暖自知 提交于 2019-12-06 09:31:49
Answer: Thanks to Justin XL I was able to fix my problem. I implemented the style he provided below in his answer and added, as he said, this in the App.xaml: ( I changed the height to 66 - fits better for me) <Application.Resources> <x:Double x:Key="AppBarThemeCompactHeight">66</x:Double> </Application.Resources> and then this in my CommandBar Height="{StaticResource AppBarThemeCompactHeight}" Question: I want my Command Bar to always show its Labels, in standard mode. I have Secondary Commands so IsOpen=true is not an option for me. Right now I just see the Icons and no labels underneath.