ApplicationView.Value 属性

定义

注意

Windows 8.1后,ApplicationView 静态方法可能会更改或不可用。 请改用 ApplicationView.GetForCurrentView 获取 ApplicationView 对象。

获取当前窗口的状态 (应用视图) 。

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

属性值

应用视图 (当前窗口的状态) 。 此状态指示方向 (横向或纵向) ,以及应用是否贴靠。

属性

注解

为了响应视图状态更改,应用从应用窗口大小调整事件处理程序内部查询此属性,以确定如何在更改的视图状态中布局应用。

这是 ApplicationView 类的静态成员。 对于 JavaScript,这意味着它是 ApplicationView 类的方法,而不是 getForCurrentView 创建的窗口对象的方法。

适用于