Class PickerAutomationPeer
Exposes Picker types to UI Automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
public abstract class PickerAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IExpandCollapseProvider
Constructors
| Improve this Doc View SourcePickerAutomationPeer(Picker)
Initializes a new instance of the PickerAutomationPeer class.
Declaration
protected PickerAutomationPeer(Picker owner)
Parameters
| Type | Name | Description |
|---|---|---|
| Picker | owner | The Picker that is associated to this AutomationPeer. |
Properties
| Improve this Doc View SourceExpandCollapseState
Gets an element's current Collapsed or Expanded state.
Declaration
public ExpandCollapseState ExpandCollapseState { get; }
Property Value
| Type | Description |
|---|---|
| ExpandCollapseState |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Methods
| Improve this Doc View SourceCollapse()
Blocking method that returns after the element has been collapsed.
Declaration
public void Collapse()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Expand()
Blocking method that returns after the element has been expanded.
Declaration
public void Expand()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
GetAutomationControlTypeCore()
Gets the control type for the Picker that is associated with this PickerAutomationPeer. This method is called by GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
| Type | Description |
|---|---|
| AutomationControlType | ComboBox AutomationControlType. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the Picker that is associated with this PickerAutomationPeer. This method is called by GetClassName.
Declaration
protected override string GetClassNameCore()
Returns
| Type | Description |
|---|---|
| System.String | The name Picker. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Returns the control pattern for the UIElement that is associated with this FrameworkElementAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| PatternInterface | patternInterface | One of the enumeration values. |
Returns
| Type | Description |
|---|---|
| System.Object | Returns an AutomationPeer that can handle the the pattern, or null. |