UWP (WinRT) Get Raw and Real Resolution

Working with resolutions can be a real pain with WinRT apps. The MS framework isn’t as far developed as we wish sometimes. Getting the “real” resolution on a device depends on several factors. Does the device supports software buttons Do we display the titlebar Which scale factor is currently active The orientation of the device DPI All …