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.

  1. Does the device supports software buttons
  2. Do we display the titlebar
  3. Which scale factor is currently active
  4. The orientation of the device
  5. DPI

All in all it can be a little bit tricky to get the desired value out of the framework.

Feel free to use or modify my helper class to handle those issues.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.