In This Article

FlipSwitchAutomationPeer Class

Exposes FlipSwitch types to UI Automation.

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

Constructors

FlipSwitchAutomationPeer(FlipSwitch)

Initializes a new instance of the FlipSwitchAutomationPeer class.

public FlipSwitchAutomationPeer(FlipSwitch owner)
Parameter Type Description
owner FlipSwitch

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