Class
RadButtonAutomationPeer

Represents the automation peer for a RadButton control, providing support for UI automation clients. This class allows automated tools to interact with the RadButton and retrieve properties such as automation IDs, names, and control patterns. The RadButtonAutomationPeer class enhances interaction by allowing invocation of the button's click events and exposing the button's functional properties through automation.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class RadButtonAutomationPeer : ButtonAutomationPeer

Inheritance: objectRadButtonAutomationPeer

Derived Classes: RadAIPromptButtonAutomationPeerRadDropDownButtonAutomationPeerRadGeometryButtonAutomationPeerRadHyperlinkButtonAutomationPeerRadPathButtonAutomationPeerRibbonButtonAutomationPeer

Constructors

RadButtonAutomationPeer(RadButton)

Initializes a new instance of the RadButtonAutomationPeer class.

Declaration

cs-api-definition
public RadButtonAutomationPeer(RadButton owner)

Parameters

owner

RadButton

The owner.

Methods

GetAutomationControlTypeCore()

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

Declaration

cs-api-definition
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 .

Declaration

cs-api-definition
protected override string GetAutomationIdCore()

Returns

string

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

GetClassNameCore()

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

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

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 .

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

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

GetItemStatusCore()

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

GetNameCore()

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

Declaration

cs-api-definition
protected override string GetNameCore()

Returns

string

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

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

One of the enumeration values.

Returns

object

See Remarks.

Invoke()

Sends a request to activate a control and initiate its single, unambiguous action.

Declaration

cs-api-definition
public void Invoke()