ApplicationView.Value Property

Definition

Note

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).

public:
 static property ApplicationViewState Value { ApplicationViewState get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("Value may be altered or unavailable for releases after Windows 8.1. Instead, query for window layout sizes directly.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
static ApplicationViewState Value();
/// [get: Windows.Foundation.Metadata.Deprecated("Value may be altered or unavailable for releases after Windows 8.1. Instead, query for window layout sizes directly.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
static ApplicationViewState Value();
public static ApplicationViewState Value { [Windows.Foundation.Metadata.Deprecated("Value may be altered or unavailable for releases after Windows 8.1. Instead, query for window layout sizes directly.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public static ApplicationViewState Value { [Windows.Foundation.Metadata.Deprecated("Value may be altered or unavailable for releases after Windows 8.1. Instead, query for window layout sizes directly.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var applicationViewState = ApplicationView.value;
Public Shared ReadOnly Property Value As ApplicationViewState

Property Value

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

Attributes

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.

Applies to