Applications in Windows 8 are full-screen when they are opened by default, so if we need to look at other applications, can we just go back to the Metro start page and choose another program? This can be cumbersome, so Windows 8 applications have 4 view states (Applicationviewstate), similar to minimizing and maximizing the normal window programs, and seeing other applications allowing multiple applications to be used at the same time.
View state Switching method: Click the top of the screen with the mouse to press and hold on to the right or drag to the left, move the middle spacing bar and so on.
Applicationviewstate:
Summary:
// Current application view for horizontal full-screen
fullscreenlandscape = 0,////
Summary:
//The current application view becomes a large part.
filled = 1,
///
Summary:
// Current application view becomes a small part
snapped = 2,///
Summary:
// the current application's view is vertically Full-screen
fullscreenportrait = 3,
To view the view state's code:
Public MainPage ()
{this
. InitializeComponent ();
This. SizeChanged + + mainpage_sizechanged;
}
<summary>
///Displays the current status
///</summary>
///<param name= "Sender" according to the window size change ></param >
///<param name= "e" ></param>
void Mainpage_sizechanged (object sender, Sizechangedeventargs e)
{
this.tbshow.Text = ApplicationView.Value.ToString ();
}
The effect chart is as follows: