Two layouts for two aspect ratios (4:3 and 16:9) -

2019-06-21 20:25发布

Following the Microsoft scale guidelines there is a part where it says:

When designing a fixed layout, start by designing your layout for the baseline resolutions: 1024x768 and 1366x768.

Regarding this I have the following question:

Is it possible to define two fixed layouts for two aspect ratios (both to be used with the ViewBox to scale to every resolution in that aspect ratio) so they can change automatically depending on the screen's aspect ratio? And maybe change between the fill mode and full screen mode that also changes aspect ratios ?

1条回答
祖国的老花朵
2楼-- · 2019-06-21 20:39

Project Templates comes with LayoutAwarePage that provides visual states you can use to change layout according to ApplicationView (Filled, Snapped etc...) If needed you could extend that behavior there overriding InvalidateVisualState.

查看更多
登录 后发表回答