In This Article

ToggleSwitchAutomationPeer Class

Exposes ToggleSwitch types to UI Automation.

public class ToggleSwitchAutomationPeer : GaugeBaseAutomationPeer, IToggleProvider
Inheritance:
Object DispatcherObject AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer GaugeBaseAutomationPeer Object

Constructors

ToggleSwitchAutomationPeer(ToggleSwitch)

Initializes a new instance of the ToggleSwitchAutomationPeer class.

public ToggleSwitchAutomationPeer(ToggleSwitch owner)
Parameter Type Description
owner ToggleSwitch

The owner.

Methods

GetPattern(PatternInterface)

Gets the object that supports the specified control pattern of the element that is associated with this automation peer.

public override object GetPattern(PatternInterface patternInterface)
Parameter Type Description
patternInterface PatternInterface

A value in the enumeration.

Returns

Object:

This method will return a 'this' pointer in the follow cases:

  • If patternInterface is PatternInterface.Toggle.

Inherited Members