TogglePatternIdentifiers TogglePatternIdentifiers TogglePatternIdentifiers Class

Contains values used as identifiers by IToggleProvider.

Syntax

Declaration

public sealed class TogglePatternIdentifierspublic sealed class TogglePatternIdentifiersPublic NotInheritable Class TogglePatternIdentifiers

Remarks

Classes such as TogglePatternIdentifiers are the identifiers for the Windows Runtime implementation of a common provider pattern for Microsoft UI Automation. You might use these identifiers if you are implementing a Windows Runtime custom automation peer that reports support for IToggleProvider in its GetPattern(Windows.UI.Xaml.Automation.Peers.PatternInterface) implementation. These identifiers are needed for the RaisePropertyChangedEvent(Windows.UI.Xaml.Automation.AutomationProperty,System.Object,System.Object) calls that you make from control code that references your own peer, or for FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,System.Object) in an items container peer.

This same pattern is usually exposed to clients in a different way, depending on which technology they use to implement the client and examine the Microsoft UI Automation tree. IToggleProvider is also presented as a Component Object Model (COM) interface.

Properties summary

Identifies the ToggleState automation property.

Properties

  • ToggleStateProperty
    ToggleStateProperty
    ToggleStateProperty
    ToggleStateProperty

    Identifies the ToggleState automation property.

    public static AutomationProperty ToggleStateProperty { get; }public static AutomationProperty ToggleStateProperty { get; }Public Static ReadOnly Property ToggleStateProperty As AutomationProperty

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.StaticAttribute

Details

Assembly

Windows.UI.Xaml.Automation.dll