To preserve the physical size of UI, Windows automatically scales UI elements. You might not want this behavior, especially if your app doesn't have a high-res version of an element available. This scenario demonstrates how to counteract the automatic scaling of text and UI elements. The box is kept at 100 pixels, and the text is kept at 27 pixels (20pt on an unscaled device). The result is that both elements get physically smaller as the scale increases.

Note: Use the simulator to view this scenario at different scales on the PC. For the 100% scale, use the 10.6" 1366x768 resolution setting. For 140% use 10.6" 1920x1080 and for 180% use 10.6" 2560x1440. Other scales are possible on phones and other devices.

Current effective resolution:

Default scaling

UI element Text
20pt

Override scaling

UI element Text