UserPromptControlAutomationPeer Class
Exposes UserPromptControl types to UI Automation.
public class UserPromptControlAutomationPeer : FrameworkElementAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object
Constructors
UserPromptControlAutomationPeer(UserPromptControl)
Initializes a new instance of the UserPromptControlAutomationPeer class.
public UserPromptControlAutomationPeer(UserPromptControl owner)
Parameter | Type | Description |
---|---|---|
owner | UserPromptControl | The owner. |
Properties
ExpandCollapseState
Gets the state, expanded or collapsed, of the control.
public ExpandCollapseState ExpandCollapseState { get; }
Property Value
- ExpandCollapseState:
The state, expanded or collapsed, of the control.
ToggleState
Gets the toggle state of the control.
Methods
Collapse()
Hides all nodes, controls, or content that are descendants of the control.
public void Collapse()
Expand()
Displays all child nodes, controls, or content of the control.
public void Expand()
GetAutomationControlTypeCore()
Gets the control type for the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetAutomationControlType().
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
- AutomationControlType:
The Custom enumeration value.
GetClassNameCore()
Gets the name of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetClassName().
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by GetLocalizedControlType().
GetPattern(PatternInterface)
Gets the object that supports the specified control pattern of the element that is associated with this automation peer.
public override object GetPattern(PatternInterface patternInterface)
Parameter | Type | Description |
---|---|---|
patternInterface | PatternInterface | A value in the enumeration. |
Returns
- object:
This method will return a
this
pointer in the follow cases:-
If
patternInterface
is ExpandCollapse and theOwner
's CanExpand property istrue
. -
If
patternInterface
is Toggle andOwner
's HasCheckBoxContent property istrue
.
-
If
Toggle()
Cycles through the toggle states of a control.
public void Toggle()