Class SelectorItemAutomationPeer
Exposes the items in a Selector to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public abstract class SelectorItemAutomationPeer : ItemAutomationPeer, IDependencyObject, ISelectionItemProvider
Constructors
| Improve this Doc View SourceSelectorItemAutomationPeer(Object, SelectorAutomationPeer)
Initializes a new instance of the SelectorItemAutomationPeer using the specified selector automation peer.
Declaration
protected SelectorItemAutomationPeer(object owner, SelectorAutomationPeer selectorAutomationPeer)
Parameters
Type | Name | Description |
---|---|---|
System.Object | owner | The UIElement instance to associate with this SelectorItemAutomationPeer. |
SelectorAutomationPeer | selectorAutomationPeer | The SelectorAutomationPeer that is associated with the control that holds the Items collection. |
SelectorItemAutomationPeer(UIElement)
Initializes a new instance of the SelectorItemAutomationPeer class.
Declaration
protected SelectorItemAutomationPeer(UIElement owner)
Parameters
Type | Name | Description |
---|---|---|
UIElement | owner | The UIElement instance to associate with this SelectorItemAutomationPeer. |
Methods
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets a object that supports the requested pattern, based on the patterns supported by this SelectorItemAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | 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 SourceISelectionItemProvider.AddToSelection()
Adds current element to selection
Declaration
void ISelectionItemProvider.AddToSelection()
ISelectionItemProvider.IsSelected
Check whether an element is selected
Declaration
bool ISelectionItemProvider.IsSelected { get; }
Returns
Type | Description |
---|---|
System.Boolean | returns true if the element is selected |
ISelectionItemProvider.RemoveFromSelection()
Removes current element from selection
Declaration
void ISelectionItemProvider.RemoveFromSelection()
ISelectionItemProvider.Select()
Sets the current element as the selection This clears the selection from other elements in the container
Declaration
void ISelectionItemProvider.Select()
ISelectionItemProvider.SelectionContainer
The logical element that supports the SelectionPattern for this Item
Declaration
IRawElementProviderSimple ISelectionItemProvider.SelectionContainer { get; }
Returns
Type | Description |
---|---|
IRawElementProviderSimple | returns an IRawElementProviderSimple |