New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class RadExpanderAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider

Inheritance: objectRadExpanderAutomationPeer

Implements: IExpandCollapseProvider

Constructors

Initializes a new instance of the RadExpanderAutomationPeer class.

C#
public RadExpanderAutomationPeer(RadExpander element)
Parameters:elementRadExpander

Properties

ExpandCollapseState

ExpandCollapseState

Gets the state, expanded or collapsed, of the control.

C#
public ExpandCollapseState ExpandCollapseState { get; }
Property Value:

The state, expanded or collapsed, of the control.

Methods

Hides all child nodes, controls, or content of the control.

C#
public void Collapse()

Displays all child nodes, controls, or content of the control.

C#
public void Expand()
C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

C#
protected override List<AutomationPeer> GetChildrenCore()
Returns:

List<AutomationPeer>

C#
protected override string GetClassNameCore()
Returns:

string

C#
protected override string GetHelpTextCore()
Returns:

string

C#
protected override string GetItemStatusCore()
Returns:

string

C#
protected override string GetNameCore()
Returns:

string

Gets a control pattern that is associated with this AutomationPeer.

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterfaceReturns:

object

C#
protected override bool IsEnabledCore()
Returns:

bool