uwp

Why Microsoft.NET.CoreRuntime.1.1.appx is coming in dependency - UWP APPX

眉间皱痕 提交于 2019-12-08 00:03:29
问题 When I was used to create appx file (x64 release mode) of my project , there was only Microsoft.VCLibs.x64.14.00.appx file was created under dependency folder. But now when I'm trying to create appx, an additional file "Microsoft.NET.CoreRuntime.1.1.appx" is also creating under dependency folder. What is the reason for it? And How can I remove it? Now when clients run my appx (using AppInstaller) , it shows "App installer failed to install package dependencies. Ask the developer for Microsoft

Changing UWP project's Target Version from 1803 to 1809 disables NavigationView's Acrylic texture - why?

纵然是瞬间 提交于 2019-12-07 23:54:50
问题 I have an UWP project which I started to build using Target Version 1803. When I upgraded the solution to use Target Version 1809 my NavigationView's behaviour changed and the acrylic effect was gone. As an illustration, this is what it looked like before: And this is what it looks like now: Why does this happen? I wouldn't believe this is to match some design guidelines since Microsoft themselves still use the acrylic effect in NavigationViews in many native UWP programs. I would also like

GetFolderFromPathAsync function access denied

不羁岁月 提交于 2019-12-07 22:29:02
问题 I'm making a Windows 10 Universal App and I want the user to pick a folder to save the document files for the App. The path for this folder is saved to ApplicationData.Current.RoamingSettings.Values . Here's the code: On first Start: var folderPicker = new FolderPicker { SuggestedStartLocation = PickerLocationId.ComputerFolder }; StorageFolder folder = await folderPicker.PickSingleFolderAsync(); StorageFolder homeFolder = await folder.CreateFolderAsync("App1 Data", CreationCollisionOption

MediaCapture StartPreviewAsync fails

為{幸葍}努か 提交于 2019-12-07 22:21:20
问题 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(); 回答1: 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

Why is my ViewModel not found?

牧云@^-^@ 提交于 2019-12-07 20:38:44
问题 Why can't VS find my file? VS Error Image and Text: Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'AudioFile' could not be found (are you missing a using directive or an assembly reference?) reOrder C:\Users\kloud\Documents\Visual Studio 2015\Projects\reOrder\reOrder\ReorderPage.xaml.cs 27 Active I recreated the project to see if Visual Studio was doing something I couldn't see/understand and checked extensively with code that is working

How can I detect the control under a point in uwp

久未见 提交于 2019-12-07 20:26:52
问题 I have a range of controls laid out on a canvas in my application. I am programmatically generating a point on this canvas. I wish to detect if a child of the canvas intersects with this point. I expected a hit test API to be available (wpf used to have an interface available), but it looks like all interaction seems to be through input and touch events, making it difficult to execute the query myself. It's very possible I've missed this functionality in my searches, does anyone know how to

how to change the font size of all text box within a grid, windows app uwp

爷,独闯天下 提交于 2019-12-07 20:17:36
问题 I know how to develop webpages with HTML and CSS, but I am new to the windows app development and I am trying to develop an universal windows platform (UWP) application. Lets say I have grid, <Grid Name="Grid1"> <VisualStateManager.VisualStateGroups> <VisualStateGroup> <VisualState x:Name="Normal"> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="600" /> </VisualState.StateTriggers> <VisualState.Setters> <Setter Target="text1.FontSize" Value="12" /> <Setter Target="text2.FontSize"

Is the Windows.ApplicationModel.LockScreen namespace available for non-kiosk use?

随声附和 提交于 2019-12-07 20:06:37
问题 The MSDN documentation for the Windows.ApplicationModel.LockScreen namespace claims that "You can create an app that acts as the lock screen, allowing greater user personalization". I'm interested in creating a custom lock screen for Windows 10 Mobile. However, my quest for further documentation yielded only an article about creating a Windows 10 desktop kiosk app. So, my question is simple--is it actually possible to create a custom Windows 10 Mobile lock screen with these classes? 回答1:

C# uwp launch apps

ⅰ亾dé卋堺 提交于 2019-12-07 19:32:55
问题 With this code below: await Windows.System.Launcher.LaunchUriAsync(new Uri(@"ms-windows-store://review/?ProductId=9wzdncrfj2wl")); I am opening Facebook app in Microsoft Store. There is a Launch button on that page. With it user runs the application. How can I run the application with it's product ID? I managed to open app with this code: await Windows.System.Launcher.LaunchUriAsync(new Uri("fb:post?text=foo")); But I want to open it with ID. I have found this code, but it is not working:

Register a Background Task without running the app

早过忘川 提交于 2019-12-07 19:18:27
问题 tl;dr : How do I register a Background Task without having to run the app? Long version : I want to register a Background Task to run every time the user logs in using SystemTriggerType.UserPresent . I've found information about registering the Task, but that is code that has to be executed. That would be fine if the Task only has to be executed after the app runs. But how do I register the Task without running the app? A Background Task can be registered by var builder = new