You can use Device Window in Visual Studio to write state changes to interface elements. In the device window, you can select other visual states (namely, click, full-screen portrait, full-screen landscape and filling), and then make the necessary changes for the desired final state. These changes are then written to VisualStateManager in part of your XAML file. The obvious advantage here is that βit just worksβ, you donβt need to detect the orientation state yourself or do any fancy XAML replacements / replacements.
Step 3 of the tutorial on navigation, layout, and views contains an example of this - it is quite simplified, but needs to understand concepts in.
source share