Getting Started with Windows 8 Development (15) 4 view state and lock screen notifications in Windows 8

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.