uwp

Microsoft store certification fails due to DPI awareness

隐身守侯 提交于 2020-12-11 00:57:15
问题 I had wanted to publish a new version of my app (WPF converted to UWP with Desktop Bridge) to the Microsoft Store, but it failed the certification with following warning: File **.exe neither has PerMonitorV2 manifested in the manifest nor calls into DPI Awareness APIs for ex: user32!SetProcessDpiAwarenessContext or user32!SetThreadDpiAwarenessContext. The app *** is not DPI Aware. I have the following questions: First of all I had published the first version of my app at the end of the last

Microsoft store certification fails due to DPI awareness

一曲冷凌霜 提交于 2020-12-11 00:55:54
问题 I had wanted to publish a new version of my app (WPF converted to UWP with Desktop Bridge) to the Microsoft Store, but it failed the certification with following warning: File **.exe neither has PerMonitorV2 manifested in the manifest nor calls into DPI Awareness APIs for ex: user32!SetProcessDpiAwarenessContext or user32!SetThreadDpiAwarenessContext. The app *** is not DPI Aware. I have the following questions: First of all I had published the first version of my app at the end of the last

Microsoft store certification fails due to DPI awareness

痴心易碎 提交于 2020-12-11 00:46:54
问题 I had wanted to publish a new version of my app (WPF converted to UWP with Desktop Bridge) to the Microsoft Store, but it failed the certification with following warning: File **.exe neither has PerMonitorV2 manifested in the manifest nor calls into DPI Awareness APIs for ex: user32!SetProcessDpiAwarenessContext or user32!SetThreadDpiAwarenessContext. The app *** is not DPI Aware. I have the following questions: First of all I had published the first version of my app at the end of the last

UWP Composition API: Rounded Corners?

依然范特西╮ 提交于 2020-12-07 18:31:38
问题 I'm struggling to figure out to to create rounded corners of content using Composition API. This is where I'm at, any help would be much appreciated: void CreateRoundedCorners(Vector2 cornerRadius, CompositionSurfaceBrush imageSourceBrush, SpriteVisual targetVisual) { CompositionRoundedRectangleGeometry roundedRectangle = _compositor.CreateRoundedRectangleGeometry(); roundedRectangle.Size = new Vector2(; roundedRectangle.CornerRadius = cornerRadius; CompositionSpriteShape spriteShape =

UWP Composition API: Rounded Corners?

时间秒杀一切 提交于 2020-12-07 18:29:58
问题 I'm struggling to figure out to to create rounded corners of content using Composition API. This is where I'm at, any help would be much appreciated: void CreateRoundedCorners(Vector2 cornerRadius, CompositionSurfaceBrush imageSourceBrush, SpriteVisual targetVisual) { CompositionRoundedRectangleGeometry roundedRectangle = _compositor.CreateRoundedRectangleGeometry(); roundedRectangle.Size = new Vector2(; roundedRectangle.CornerRadius = cornerRadius; CompositionSpriteShape spriteShape =

Displaying message dialog on UnhandledException

馋奶兔 提交于 2020-12-01 11:54:11
问题 In my App I want to display a message dialog whenever there is any Unhandled exception. But it seems that dialog message is not appearing when Unhandled exception is throw, Is it valid to display message popup? Also in MSDN documentation I didn't find much info for it. Below is the test code which I am using: public App() { this.InitializeComponent(); this.Suspending += OnSuspending; this.UnhandledException += App_UnhandledException; } private async void App_UnhandledException(object sender,

UWP Databinding: How to set button command to parent DataContext inside DataTemplate

自古美人都是妖i 提交于 2020-11-28 07:09:20
问题 Short explanation of need: I need to fire the command of a button inside a DataTemplate, using a method from the DataContext of the ViewModel. Short explanation of problem: The templated button command only seems to be bindable to the datacontext of the item itself. The syntax used by WPF and Windows 8.1 apps to walk up the visual tree doesn't seem to work, including ElementName and Ancestor binding. I would very much prefer not to have my button command located inside the MODEL. Side Note:

UWP Databinding: How to set button command to parent DataContext inside DataTemplate

狂风中的少年 提交于 2020-11-28 07:08:11
问题 Short explanation of need: I need to fire the command of a button inside a DataTemplate, using a method from the DataContext of the ViewModel. Short explanation of problem: The templated button command only seems to be bindable to the datacontext of the item itself. The syntax used by WPF and Windows 8.1 apps to walk up the visual tree doesn't seem to work, including ElementName and Ancestor binding. I would very much prefer not to have my button command located inside the MODEL. Side Note:

UWP Databinding: How to set button command to parent DataContext inside DataTemplate

℡╲_俬逩灬. 提交于 2020-11-28 07:07:19
问题 Short explanation of need: I need to fire the command of a button inside a DataTemplate, using a method from the DataContext of the ViewModel. Short explanation of problem: The templated button command only seems to be bindable to the datacontext of the item itself. The syntax used by WPF and Windows 8.1 apps to walk up the visual tree doesn't seem to work, including ElementName and Ancestor binding. I would very much prefer not to have my button command located inside the MODEL. Side Note:

UWP Databinding: How to set button command to parent DataContext inside DataTemplate

99封情书 提交于 2020-11-28 07:07:12
问题 Short explanation of need: I need to fire the command of a button inside a DataTemplate, using a method from the DataContext of the ViewModel. Short explanation of problem: The templated button command only seems to be bindable to the datacontext of the item itself. The syntax used by WPF and Windows 8.1 apps to walk up the visual tree doesn't seem to work, including ElementName and Ancestor binding. I would very much prefer not to have my button command located inside the MODEL. Side Note: