WinUIEx
WinUIEx copied to clipboard
Use ContentCoordinateConverter for screen <--> window coordinate conversion
Instead of getting DPI and doing conversions, consider changing all that code to use the ContentCoordinateConverter:
https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.ui.content.contentcoordinateconverter?view=windows-app-sdk-1.4