ClassRadToggleButtonAutomationPeer
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:
public class RadToggleButtonAutomationPeer : ToggleButtonAutomationPeer
Inheritance: objectRadToggleButtonAutomationPeer
Derived Classes:
Constructors
RadToggleButtonAutomationPeer(RadToggleButton)
Initializes a new instance of the RadToggleButtonAutomationPeer class.
Declaration
public RadToggleButtonAutomationPeer(RadToggleButton owner)
Parameters
owner
The owner.
Properties
ToggleState
Gets the toggle state of the control.
Declaration
public ToggleState ToggleState { get; }
Property Value
ToggleState
The toggle state of the control, as a value of the enumeration.
Methods
GetAutomationControlTypeCore()
Returns the control type for the UIElement that is associated with this . This method is called by .
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
A value of the enumeration.
GetAutomationIdCore()
Returns the string that uniquely identifies the FrameworkElement that is associated with this . This method is called by .
GetClassNameCore()
Returns the name of the UIElement that is associated with this . This method is called by .
Declaration
protected override string GetClassNameCore()
Returns
The name of the owner type that is associated with this . See Remarks.
GetHelpTextCore()
Returns the string that describes the functionality of the FrameworkElement that is associated with this . This method is called by .
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by .
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
The type of the control.
GetNameCore()
Returns the text label of the FrameworkElement that is associated with this . This method is called by .
Declaration
protected override string GetNameCore()
Returns
The text label of the element that is associated with this automation peer.
GetPattern(PatternInterface)
Returns the control pattern for the UIElement that is associated with this .
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
One of the enumeration values.
Returns
See Remarks.
Toggle()
Cycles through the toggle states of a control.
Declaration
public void Toggle()