Share via


WindowPatternIdentifiers 类

定义

包含 IWindowProvider 用作标识符的值。

public ref class WindowPatternIdentifiers sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WindowPatternIdentifiers final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WindowPatternIdentifiers
Public NotInheritable Class WindowPatternIdentifiers
继承
Object Platform::Object IInspectable WindowPatternIdentifiers
属性

Windows 要求

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

注解

WindowPatternIdentifiers 等类是 Microsoft UI 自动化常见提供程序模式的Windows 运行时实现的标识符。 如果要实现Windows 运行时自定义自动化对等,该自动化对等方在其 GetPattern 实现中报告了对 IWindowProvider 的支持,则可以使用这些标识符。 从引用你自己的对等方的控制代码发出的 RaisePropertyChangedEvent 调用或项容器对等中的 FindItemByProperty 需要这些标识符。 对控件使用此模式相当不常见。

这种相同的模式通常以不同的方式向客户端公开,具体取决于客户端使用哪种技术来实现客户端并检查 Microsoft UI 自动化树。 IWindowProvider 还作为组件对象模型呈现 (COM) 接口。

属性

CanMaximizeProperty

标识 最大化 自动化属性。

CanMinimizeProperty

标识 可最小化 的自动化属性。

IsModalProperty

标识 IsModal 自动化属性。

IsTopmostProperty

标识 IsTopmost 自动化属性。

WindowInteractionStateProperty

标识 InteractionState 自动化属性。

WindowVisualStateProperty

标识 VisualState 自动化属性。

适用于

另请参阅