-api-id | -api-type |
---|---|
T:Windows.UI.ViewManagement.ApplicationView |
winrt class |
Represents the active application view and associated states and behaviors.
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.
You can use the properties (or methods, for JavaScript) of the window in configuring your pages. For example: the Orientation property tells you whether the window is portrait or landscape; for Windows the AdjacentToLeftDisplayEdge property tells you whether the left edge of the screen is the left border of the window; and the isFullScreen method tells you whether the window uses the entire screen. For examples of using these methods, see the Application Views sample.
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.
Windows version | SDK version | Value added |
---|---|---|
1703 | 15063 | IsViewModeSupported |
1703 | 15063 | TryConsolidateAsync |
1703 | 15063 | TryEnterViewModeAsync(ApplicationViewMode) |
1703 | 15063 | TryEnterViewModeAsync(ApplicationViewMode,ViewModePreferences) |
1703 | 15063 | ViewMode |
1903 | 18362 | ClearAllPersistedState |
1903 | 18362 | ClearPersistedState |
1903 | 18362 | GetDisplayRegions |
1903 | 18362 | PersistedStateId |
1903 | 18362 | UIContext |
1903 | 18362 | WindowingEnvironment |
Disabling screen capture sample (Windows 10), User interaction mode sample (Windows 10), Multiple views sample (Windows 10), Full screen mode sample (Windows 10), Window resizing sample (Windows 10), Title bar sample (Windows 10)