ClassRadExpanderAutomationPeer
Represents the automation peer for a RadExpander control, enabling UI automation support for the control's expand and collapse functionality. This class inherits from FrameworkElementAutomationPeer and implements the IExpandCollapseProvider interface. It provides functionality to determine the expanded or collapsed state of the control, as well as methods to expand and collapse the content. The class also supports retrieving the associated control patterns, automation control type, and details about the control such as its name and properties. It ensures that operations can only be performed on an enabled instance of RadExpander and raises appropriate automation events when the expand/collapse state changes.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class RadExpanderAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider
Inheritance: objectRadExpanderAutomationPeer
Implements:
Constructors
RadExpanderAutomationPeer(RadExpander)
Initializes a new instance of the RadExpanderAutomationPeer class.
Declaration
public RadExpanderAutomationPeer(RadExpander element)
Parameters
element
Properties
ExpandCollapseState
Gets the state, expanded or collapsed, of the control.
Declaration
public ExpandCollapseState ExpandCollapseState { get; }
Property Value
ExpandCollapseState
The state, expanded or collapsed, of the control.
Methods
Collapse()
Hides all child nodes, controls, or content of the control.
Declaration
public void Collapse()
Expand()
Displays all child nodes, controls, or content of the control.
Declaration
public void Expand()
GetAutomationControlTypeCore()
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
GetChildrenCore()
Declaration
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists")]
protected override List<AutomationPeer> GetChildrenCore()
Returns
List<AutomationPeer>
GetPattern(PatternInterface)
Gets a control pattern that is associated with this AutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
Returns