New to Telerik UI for WPFStart a free 30-day trial

Represents the automation peer for the RadToggleButton control, enabling UI Automation clients to interact with toggle button controls. This class derives from and provides additional functionality specific to the RadToggleButton. It allows for the retrieval of properties such as toggle state, automation identifier, and help text associated with the button. The Toggle() method cycles through the toggle states, providing hooks for UI Automation clients to engage with the control's functionality. The functionality of this class is essential for ensuring accessibility in applications using the RadToggleButton by supporting UI Automation patterns and properties.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class RadToggleButtonAutomationPeer : ToggleButtonAutomationPeer

Inheritance: objectRadToggleButtonAutomationPeer

Derived Classes: RadGeometryToggleButtonAutomationPeerRibbonToggleButtonAutomationPeer

Constructors

Initializes a new instance of the RadToggleButtonAutomationPeer class.

C#
public RadToggleButtonAutomationPeer(RadToggleButton owner)
Parameters:ownerRadToggleButton

The owner.

Properties

ToggleState

ToggleState

Gets the toggle state of the control.

C#
public ToggleState ToggleState { get; }
Property Value:

The toggle state of the control, as a value of the enumeration.

Methods

Returns the control type for the UIElement that is associated with this . This method is called by .

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

A value of the enumeration.

Returns the string that uniquely identifies the FrameworkElement that is associated with this . This method is called by .

C#
protected override string GetAutomationIdCore()
Returns:

string

The automation identifier for the element associated with the , or Empty if there is no automation identifier.

Returns the name of the UIElement that is associated with this . This method is called by .

C#
protected override string GetClassNameCore()
Returns:

string

The name of the owner type that is associated with this . See Remarks.

Returns the string that describes the functionality of the FrameworkElement that is associated with this . This method is called by .

C#
protected override string GetHelpTextCore()
Returns:

string

The help text, or Empty if there is no help text.

C#
protected override string GetItemStatusCore()
Returns:

string

When overridden in a derived class, is called by .

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

The type of the control.

Returns the text label of the FrameworkElement that is associated with this . This method is called by .

C#
protected override string GetNameCore()
Returns:

string

The text label of the element that is associated with this automation peer.

Returns the control pattern for the UIElement that is associated with this .

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterface

One of the enumeration values.

Returns:

object

See Remarks.

Cycles through the toggle states of a control.

C#
public void Toggle()