Defines an instance of a window (app view) and the information that describes it.
The ApplicationView class has these types of members:
The ApplicationView class has these events.
|Consolidated||Occurs when the window is removed from the list of recently used apps, or if the user executes a close gesture on it.|
|VisibleBoundsChanged||This event is raised when the value of VisibleBounds changes, typically as a result of the status bar, app bar, or other chrome being shown or hidden.|
The ApplicationView class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|GetApplicationViewIdForWindow||Gets the window ID that corresponds to a specific CoreWindow managed by the app.|
|GetForCurrentView||Gets the window (app view) for the current app.|
|SetDesiredBoundsMode||Sets a value indicating the bounds used by the framework to lay out the contents of the window (app view).|
|TryUnsnap||Attempts to unsnap a previously snapped app.|
The ApplicationView class has these properties.
|Read-only||Gets whether the current window (app view) is adjacent to the left edge of the screen, whether the window is full-screen or docked.|
|Read-only||Gets whether the current window (app view) is adjacent to the right edge of the screen, whether the window is full-screen or docked.|
|Read-only||Gets a value that indicates the bounds used by the framework to lay out the contents of the window (app view).|
|Read-only||Gets the ID of the window (app view).|
|Read-only||Gets whether the window (app view) fills the entire screen.|
|Read-only||Gets whether the window (app view) is on the Windows lock screen.|
|Read/write||Gets or sets whether screen capture is enabled for the window (app view).|
|Read-only||Gets the current orientation (landscape or portrait) of the window (app view) with respect to the display.|
|Read/write||Gets or sets a value indicating whether or not system overlays (such as overlay applications or the soft steering wheel) should be shown.|
|Read/write||Indicates whether the app terminates when the last window is closed.|
|Read/write||Gets or sets the displayed title of the window.|
|Read-only||Gets the state of the current window (app view).|
|Read-only||Gets the visible region of the window (app view). The visible region is the region not occluded by chrome such as the status bar and app bar.|
A window (also called an app view) is the displayed portion of a Windows Runtime app. On Windows, a user's screen can have up to 4 windows of variable width displayed simultaneously. They do not overlap, and their top and bottom edges touch the top and bottom edges of the screen. There may be non-window areas between adjacent windows.
The window is not the same thing as the current page of the application. It is better thought of as the container of the pages; you can use the window reference in your program for all the pages of the application.
Each window has a corresponding CoreWindow that represents the UI processing thread (including the core input handlers and event dispatcher) for the window.
To obtain an object of this type, call ApplicationView.GetForCurrentView.
Note Do not use the value returned in the ApplicationView.Value property when creating a page layout. This method is deprecated and may not be available in future releases.
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|
Minimum supported phone
|Windows Phone 8.1 [Windows Runtime apps only]|