Provides the UI automation peer for the RadDropDownButton control, enabling accessibility support and interaction with automation clients. This class extends RadButtonAutomationPeer and implements the IExpandCollapseProvider interface, which provides methods to expand and collapse the drop-down content associated with the RadDropDownButton. It controls the state reporting of the drop-down button, handles invocation to toggle the drop-down, and retrieves automation properties such as the control's name and help text. Additionally, it supports the retrieval of child automation peers for any content displayed in the drop-down.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class RadDropDownButtonAutomationPeer : RadButtonAutomationPeer, IExpandCollapseProvider
Inheritance: objectRadButtonAutomationPeerRadDropDownButtonAutomationPeer
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadDropDownButtonAutomationPeer class.
public RadDropDownButtonAutomationPeer(RadDropDownButton owner)
The owner.
Properties
ExpandCollapseState
ExpandCollapseState
Gets the state (expanded or collapsed) of the control.
public ExpandCollapseState ExpandCollapseState { get; }
The state (expanded or collapsed) of the control.
Methods
Hides all nodes, controls, or content that are descendants of the control.
public void Collapse()
Displays all child nodes, controls, or content of the control.
public void Expand()
Returns the string that uniquely identifies the FrameworkElement that is associated with this . This method is called by .
Returns the collection of child elements of the UIElement that is associated with this . This method is called by .
protected override List<AutomationPeer> GetChildrenCore()
List<AutomationPeer>
A list of child AutomationPeer elements.
Returns the name of the UIElement that is associated with this . This method is called by .
protected override string GetClassNameCore()
The name of the owner type that is associated with this . See Remarks.
Overrides:
Returns the text label of the FrameworkElement that is associated with this . This method is called by .
protected override string GetNameCore()
The text label of the element that is associated with this automation peer.
Overrides:
When overridden in a derived class, gets an object that supports the requested pattern, based on PatternInterface input and the peer's implementation of known patterns.
public override object GetPattern(PatternInterface patternInterface)
A value from the PatternInterface enumeration.
Returns:The object that implements the pattern interface; null if this peer does not support this interface.
Overrides:
Sends a request to activate a control and initiate its single, unambiguous action.
public void Invoke()