You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AppWindow uses integers to better integrate with Win32 HWND concepts. A Win32 window can only be positioned on integer boundaries, so we use Ints in that API.
Windows App SDK's PointerPoint (Microsoft.UI.Input.PointerPoint) is based on the Windows Platform SDK's PointerPoint (Windows.UI.Input.PointerPoint) and we wanted to make porting between these two easier.
PointerPoint can also be arbitrarily modified by scales, rotations, or other transformations depending on how it is used, such as when delivered in relation to a Xaml element with custom scaling. To support these scenarios we use doubles.
Describe the bug
Consider the following
Is there any good reason why appWindow.Position.X is int while the pointer position is double?
Steps to reproduce the bug
See example above
Expected behavior
Pointer should be int.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.1.1
Windows app type
Device form factor
Desktop
Windows version
Windows 11 (21H2): Build 22000
Additional context
No response
The text was updated successfully, but these errors were encountered: