NavigationPaneAutomationPeer Class
Exposes NavigationPane types to UI Automation.
public class NavigationPaneAutomationPeer : ExpanderAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ExpanderAutomationPeer object
Constructors
NavigationPaneAutomationPeer(NavigationPane)
Exposes NavigationPane types to UI Automation.
public NavigationPaneAutomationPeer(NavigationPane owner)
| Parameter | Type | Description |
|---|---|---|
| owner | NavigationPane | The owner element. |
Methods
GetAutomationControlTypeCore()
Gets the control type for the Expander that is associated with this ExpanderAutomationPeer. This method is called by GetAutomationControlType().
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
- AutomationControlType:
The Group enumeration value.
GetChildrenCore()
Gets the collection of child elements of the Expander control that is associated with this ExpanderAutomationPeer, and sets the event source of the templated toggle button to this GetChildrenCore() instance.
protected override List<AutomationPeer>? GetChildrenCore()
Returns
- List<AutomationPeer>:
The collection of child elements of the Expander control associated with this ExpanderAutomationPeer.
GetClassNameCore()
Gets the name of the Expander that is associated with this ExpanderAutomationPeer. Called by GetClassName().
GetPattern(PatternInterface)
Gets the control pattern for the Expander that is associated with this ExpanderAutomationPeer.
public override object GetPattern(PatternInterface patternInterface)
| Parameter | Type | Description |
|---|---|---|
| patternInterface | PatternInterface |
Returns
- object:
If
patternis ExpandCollapse, this method returns a reference to the current instance of the ExpanderAutomationPeer, otherwise this method calls the base implementation on UIElementAutomationPeer which returnsnull.
Invoke()
public void Invoke()