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
Initializes a new instance of the RadExpanderAutomationPeer class.
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 child nodes, controls, or content of the control.
public void Collapse()
Displays all child nodes, controls, or content of the control.
public void Expand()
protected override AutomationControlType GetAutomationControlTypeCore()
AutomationControlType
Gets a control pattern that is associated with this AutomationPeer.
public override object GetPattern(PatternInterface patternInterface)