Class ItemsControlAutomationPeer
Exposes ItemsControl types to UI automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public abstract class ItemsControlAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject
Constructors
| Improve this Doc View SourceItemsControlAutomationPeer(ItemsControl)
Provides initialization for base class values when called by the constructor of a derived class.
Declaration
protected ItemsControlAutomationPeer(ItemsControl owner)
Parameters
Type | Name | Description |
---|---|---|
ItemsControl | owner | The ItemsControl to associate with this ItemsControlAutomationPeer. |
Methods
| Improve this Doc View SourceCreateItemAutomationPeer(Object)
Creates a new instance of the ItemAutomationPeer for a data item. The item exists in the Items collection of the associated ItemsControl owner.
Declaration
protected virtual ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The data item that is associated with this ItemAutomationPeer. |
Returns
Type | Description |
---|---|
ItemAutomationPeer | An object that exposes the data item to UI automation, or null. See Remarks. |
Remarks
An ItemsControl is capable of containing data items that are not a UIElement, or that do not have an associated peer class per the OnCreateAutomationPeer() implementation. In these cases, CreateItemAutomationPeer(Object) returns null.
GetChildrenCore()
Gets automation peers for the collection of child elements of the element that is associated with this ItemsControlAutomationPeer .
Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<AutomationPeer> | A list of automation peers for child elements. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets an object that implements the requested pattern, based on the patterns supported by this ItemsControlAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | One of the enumeration values that indicates the desired control pattern. |
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. |