In This Article

BarToggleButtonAutomationPeer Class

Exposes BarToggleButton types to UI Automation.

public class BarToggleButtonAutomationPeer : BarButtonAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ButtonBaseAutomationPeer ButtonAutomationPeer BarButtonAutomationPeer object
Derived:
BarCheckBoxAutomationPeer

Constructors

BarToggleButtonAutomationPeer(BarToggleButton)

Initializes a new instance of the BarToggleButtonAutomationPeer class.

public BarToggleButtonAutomationPeer(BarToggleButton owner)
Parameter Type Description
owner BarToggleButton

The owner element.

Methods

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

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:

If patternInterface is Invoke, this method returns a this pointer, otherwise this method returns null.

Inherited Members