windows-10-universal

Why does UWP continuous speech recognition stop

帅比萌擦擦* 提交于 2019-12-09 21:53:06
问题 I have a Windows 10 UWP app that I am enabling voice recognition for a text box. Yes, I know that I can also leverage Cortana for this. However, Cortana comes with some cons as well, mainly that you have little to no control over Cortana from within the app. This is where the Continuous Recognition of the SpeechRecognizer namespace comes in. I like the amount of control I have. However, it seems to randomly stop listening after some seconds. Here is how I have it implemented. Note that I also

How to use VisualState AdaptiveTrigger to change ListView Item FontSize

只愿长相守 提交于 2019-12-09 01:36:29
问题 I am using Visual State Adaptive Trigger to change page appearance depending on effective screen resolution. This works great, but I cannot get it to work for ListView Items. My ListView looks something like this: <ListView x:Name="listView" > <ListView.ItemTemplate> <DataTemplate> <TextBlock FontSize="20" Text="{Binding MyItem}"/> </DataTemplate> </ListView.ItemTemplate> </ListView> I can change the TextBlock font size statically in XAML. But I don't know how to reference this in VisualState

How can i change the Package family name in uwp windows 10

偶尔善良 提交于 2019-12-09 00:36:16
问题 I want to change the key mentioned in fig., when i change the certificate file it changes to the another temporary key, and the publisher folder is creating with this key as name. but i want it as a meaningful name. is it possible.? if anybody knows, please help me. 回答1: Together, these elements declare the identity of your app, establishing the "package family" to which all of its packages belong. Individual packages will have additional details, such as architecture and version. The package

await Task.CompletedTask for what?

此生再无相见时 提交于 2019-12-08 14:46:48
问题 I created UWP app with Windows Template Studio that introduced at Build2017. Below class is a part of generated code from it. public class SampleModelService { public async Task<IEnumerable<SampleModel>> GetDataAsync() { await Task.CompletedTask; // <-- what is this for? var data = new List<SampleModel>(); data.Add(new SampleModel { Title = "Lorem ipsum dolor sit 1", Description = "Lorem ipsum dolor sit amet", Symbol = Symbol.Globe }); data.Add(new SampleModel { Title = "Lorem ipsum dolor sit

CameraCaptureTask of Windows Phone 8 App is not working in Windows 10?

假装没事ソ 提交于 2019-12-08 12:26:23
问题 I have a Windows Phone 8 App, which is Live on Windows Store. Now, recently I got a complaint from one of my Client that they are not able to capture Photo, only selection of Photo works from Gallery. This issue is appearing when they updated their device to Windows 10. I am using following code private void CapturePhoto() { CameraCaptureTask cameraCapture = new CameraCaptureTask(); cameraCapture.Completed += (sender, args) => { //checking if everything went fine when capturing a photo if

Windows 10 Universal app screen size on launch not working

自闭症网瘾萝莉.ら 提交于 2019-12-08 12:17:53
问题 I had read a ton about setting the app window size on launch. Basically, my app is launching full screen everytime. I want to restrict it to a pre-defined size when it launches. However, nothing seems to be working. Here is what I have done so far: I have put the following: var desiredSize = new Size(400, 600); ApplicationView.GetForCurrentView().ExitFullScreenMode(); ApplicationView.GetForCurrentView().SetPreferredMinSize(desiredSize); ApplicationView.PreferredLaunchViewSize = desiredSize;

Visual Studio 2017 UWP Apps crash

隐身守侯 提交于 2019-12-08 11:56:01
问题 I have just installed Visual Studio 2017 Ent on Windows 10 (Creators update patch level) After the installation UWP apps that I have developped no longer start. They crash with this error: "Unable to activate Windows Store app. The xzy.exe process started, but the activation request failed with error 'The app didn't start'" Event creating a new project with a blank UWP application produces the same error. The failure happens before the App.xaml.cs init is called. Has anyone else ancountered

Always show the navigation arrows on a FlipView control in UWP

旧巷老猫 提交于 2019-12-08 11:09:02
问题 When using a mouse and hovering over a Universal Windows Platform (UWP) FlipView control the previous/next navigation buttons are shown. However, when using touch or pen, they remain hidden which may confuse users into not expecting additional content. I would like navigation buttons to always be visible. How can I do this? 回答1: We need to create a custom FlipView . Start with the code shown below: public class CustomFlipView : FlipView { protected override void OnApplyTemplate() { base

Get Extended Splashscreen With Circular ProgressBar Around Image

爱⌒轻易说出口 提交于 2019-12-08 06:36:10
问题 I am using template 10 and want my splash screen to look like this: I have got the circular progress Bar control Here and got it around a image through Grace Feng help from this code Link Now I want this round progress control into my splash screen so it look like like the above images but in the extended splash screen link tutorial they show it by canvas and i want to do it by Myprogress control any idea how to implement this control in extended splash screen.If i just use it in splash.xaml

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