Class ExpanderAutomationPeer
Exposes Expander types to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ExpanderAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider
Constructors
| Improve this Doc View SourceExpanderAutomationPeer(Expander)
Initializes a new instance of the ExpanderAutomationPeer class.
Declaration
public ExpanderAutomationPeer(Expander owner)
Parameters
Type | Name | Description |
---|---|---|
Expander | owner | The element associated with this automation peer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the
Expander that is associated
with this
ExpanderAutomationPeer.
This method is called by
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | The Group enumeration value. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the Expander that is associated with this ExpanderAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | A string that contains Expander. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets the control pattern for the Expander that is associated with this ExpanderAutomationPeer.
Declaration
public override object GetPattern(PatternInterface pattern)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | pattern | One of the enumeration values. |
Returns
Type | Description |
---|---|
System.Object | The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIExpandCollapseProvider.Collapse()
Hides all nodes, controls, or content that are descendants of the control.
Declaration
void IExpandCollapseProvider.Collapse()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
IExpandCollapseProvider.Expand()
Displays all child nodes, controls, or content of the control.
Declaration
void IExpandCollapseProvider.Expand()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
IExpandCollapseProvider.ExpandCollapseState
Gets the state (expanded or collapsed) of the control.
Declaration
ExpandCollapseState IExpandCollapseProvider.ExpandCollapseState { get; }
Returns
Type | Description |
---|---|
ExpandCollapseState | The state (expanded or collapsed) of the control. |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.