问题
I´m doing a Windows Universal app that will run only on Lumia 640XL devices. That device has a native resolution of 1280 x 720 and a pixel density of 259 ppi. There will be no desktop version so I just care about the mobile layout.
The design guide lines for my app are huge and full of pixel measures (sizes, margins, paddings, font sizes) everywhere, so what I´d like is to make the mobile app respect the physical pixels (rather than "effective pixels"), as the desktop version does.
How can I disable auto-scaling?
There is a link here saying how to disable scaling on Xbox:
bool result = Windows.UI.ViewManagement.ApplicationViewScaling.TrySetDisableLayoutScaling(true);
but that ApplicationViewScaling
does not seam to be available on mobile:
The UAP version I´m using is 10.0.10586.0
来源:https://stackoverflow.com/questions/40020631/how-to-disable-auto-scaling-on-uwp-mobile