ApplicationViewState 枚举

定义

指定可处理的应用视图状态更改集。

重要

Windows 8.1后,ApplicationViewState 可能会更改或不可用。 而是直接查询窗口布局大小。

public enum class ApplicationViewState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("ApplicationViewState 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)]
enum class ApplicationViewState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("ApplicationViewState 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")]
enum class ApplicationViewState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("ApplicationViewState 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))]
public enum ApplicationViewState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("ApplicationViewState 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")]
public enum ApplicationViewState
var value = Windows.UI.ViewManagement.ApplicationViewState.fullScreenLandscape
Public Enum ApplicationViewState
继承
ApplicationViewState
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

Filled 1

由于另一个应用贴靠,当前应用的视图已缩减为部分屏幕视图。

FullScreenLandscape 0

当前应用的视图处于全屏 () 旁边没有贴靠的应用,并且已更改为横向。

FullScreenPortrait 3

当前应用的视图处于全屏 () 旁边没有贴靠的应用,并且已更改为纵向。

Snapped 2

当前应用的视图已贴靠。

适用于