Ahmed Abdelkarim
Ahmed Abdelkarim

Reputation: 277

Force UWP app to run always with 100% screen scale factor

My UWP application layout is working as expected when screen scale is 100%. But when I change it from "Display Settings > Change the size of text, apps, and other items" to any value larger than 100% like 125% or 150% the layout is damaged.

So I need to know how to force it run always on 100% scale factor, even if use changed it from Display Settings.

This is available and easy in WPF, but I need to do the same in UWP windows apps.

Upvotes: 1

Views: 1005

Answers (1)

Thomas Schneiter
Thomas Schneiter

Reputation: 1153

I think you should fix your Layout to be able to scale correctly instead of trying to force a 100% scale factor. Some devices (e.g. Surface Book) use a scale factor of 200% as default, so your application would be scaled wrong if you force it to 100%. Use VisualStates to change the layout when resized/scaled.

Upvotes: 2

Related Questions