Windows Dev Center

ApplicationView.Value | value property

[ApplicationView static methods may be altered or unavailable for releases after Windows 8.1. Instead, use ApplicationView.GetForCurrentView to get an ApplicationView object.]

Gets the state of the current window (app view).

Syntax


var value = Windows.UI.ViewManagement.ApplicationView.value;

Property value

Type: ApplicationViewState

The state of the current window (app view). This state indicates the orientation (landscape or portrait) and whether or not the app is snapped.

Remarks

To respond to a view state change, an app queries this property from inside the app window resize event handler to determine how to lay out the app in the changed view state.

This is a static member of the ApplicationView class. For JavaScript this means that it is a method of the ApplicationView class, not of the window object that getForCurrentView creates.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.winmd

See also

ApplicationView

 

 

Show:
© 2015 Microsoft