Class ItemAutomationPeer
Exposes a data item in an Items collection to UI automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public abstract class ItemAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject
Constructors
| Improve this Doc View SourceItemAutomationPeer(Object, ItemsControlAutomationPeer)
Provides initialization for base class values when called by the constructor of a derived class.
Declaration
protected ItemAutomationPeer(object item, ItemsControlAutomationPeer itemsControlAutomationPeer)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The data item in the Items collection that is associated with this ItemAutomationPeer . |
ItemsControlAutomationPeer | itemsControlAutomationPeer | The ItemsControlAutomationPeer that is associated with the ItemsControl that holds the Items collection. |
ItemAutomationPeer(UIElement)
Provides initialization for base class values when called by the constructor of a derived class.
Declaration
protected ItemAutomationPeer(UIElement item)
Parameters
Type | Name | Description |
---|---|---|
UIElement | item | The data item in the Items collection that is associated with this ItemAutomationPeer . |
Properties
| Improve this Doc View SourceItem
Gets the requested data item in the Items collection that is associated with this ItemAutomationPeer .
Declaration
protected object Item { get; }
Property Value
Type | Description |
---|---|
System.Object | The requested data item. |
ItemsControlAutomationPeer
Gets the ItemsControlAutomationPeer that is associated with the ItemsControl for this peer's Items .
Declaration
protected ItemsControlAutomationPeer ItemsControlAutomationPeer { get; }
Property Value
Type | Description |
---|---|
ItemsControlAutomationPeer | The ItemsControlAutomationPeer associated with the ItemsControl that holds the Items collection. |
Methods
| Improve this Doc View SourceGetAcceleratorKeyCore()
Returns the accelerator key for the item element that is associated with this ItemAutomationPeer. This method is called by GetAcceleratorKey() .
Declaration
protected override string GetAcceleratorKeyCore()
Returns
Type | Description |
---|---|
System.String | The System.Windows.Automation.AutomationProperties.AcceleratorKey that is returned by GetAcceleratorKey(DependencyObject) . |
Overrides
| Improve this Doc View SourceGetAccessKeyCore()
Returns the access key for the item element that is associated with this ItemAutomationPeer . This method is called by GetAccessKey() .
Declaration
protected override string GetAccessKeyCore()
Returns
Type | Description |
---|---|
System.String | The access key for the element that is associated with this ItemAutomationPeer . |
Overrides
| Improve this Doc View SourceGetAutomationControlTypeCore()
Returns the control type for the item element that is associated with this ItemAutomationPeer. This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | A value of the enumeration. |
Overrides
| Improve this Doc View SourceGetAutomationIdCore()
Returns the string that uniquely identifies the item element that is associated with this ItemAutomationPeer. This method is called by GetAutomationId() .
Declaration
protected override string GetAutomationIdCore()
Returns
Type | Description |
---|---|
System.String | The automation identifier for the element associated with the ItemAutomationPeer, or System.String.Empty if there is no automation identifier. |
Overrides
| Improve this Doc View SourceGetBoundingRectangleCore()
Returns the Rect that represents the bounding rectangle of the item element that is associated with this ItemAutomationPeer . This method is called by GetBoundingRectangle() .
Declaration
protected override Rect GetBoundingRectangleCore()
Returns
Type | Description |
---|---|
Rect | The Rect that contains the coordinates of the element item. |
Overrides
| Improve this Doc View SourceGetChildrenCore()
Returns automation peers for the collection of child elements of the owner. The owner class is associated with the ItemAutomationPeer. This method is called by GetChildren().
Declaration
protected override List<AutomationPeer> GetChildrenCore()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<AutomationPeer> | A list of AutomationPeer elements. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Returns name of the class that is associated with this ItemAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The class name. See Remarks. |
Overrides
Remarks
If the item is a UIElement with its own peer as reported by Owner, then information from that peer is forwarded. Next, the container peer (which could be ItemsControlAutomationPeer, ListBoxAutomationPeer, or another class) is used as a possible source. Finally, if there is no container peer, then this method returns System.String.Empty.
GetClickablePointCore()
Returns a Point that represents the clickable space for the item element that is associated with this ItemAutomationPeer. This method is called by GetClickablePoint().
Declaration
protected override Point GetClickablePointCore()
Returns
Type | Description |
---|---|
Point | The Point on the element that allows a click. |
Overrides
| Improve this Doc View SourceGetHelpTextCore()
Returns the string that describes the functionality of the item element that is associated with this ItemAutomationPeer. This method is called by GetHelpText().
Declaration
protected override string GetHelpTextCore()
Returns
Type | Description |
---|---|
System.String | The help text, or System.String.Empty if there is no help text. |
Overrides
| Improve this Doc View SourceGetItemStatusCore()
Returns a string that communicates the visual status of the item element that is associated with this ItemAutomationPeer. This method is called by GetItemStatus().
Declaration
protected override string GetItemStatusCore()
Returns
Type | Description |
---|---|
System.String | The string that contains the System.Windows.Automation.AutomationProperties.ItemStatus that is returned by GetItemStatus(DependencyObject). |
Overrides
| Improve this Doc View SourceGetItemTypeCore()
Returns a human-readable string that contains the type of item element that the item represents. This method is called by GetItemType().
Declaration
protected override string GetItemTypeCore()
Returns
Type | Description |
---|---|
System.String | The item type string. |
Overrides
| Improve this Doc View SourceGetLabeledByCore()
Returns the AutomationPeer for the object that targets the item that is associated with this ItemAutomationPeer. This method is called by GetLabeledBy().
Declaration
protected override AutomationPeer GetLabeledByCore()
Returns
Type | Description |
---|---|
AutomationPeer | An automation peer for the object that label-targets the peer's owner. |
Overrides
| Improve this Doc View SourceGetLocalizedControlTypeCore()
Returns a localized human-readable string that represents a control type. The control is the owner type that is associated with this ItemAutomationPeer. This method is called by GetLocalizedControlType().
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
Type | Description |
---|---|
System.String | The string that contains the type of control. |
Overrides
| Improve this Doc View SourceGetNameCore()
Gets the UI Automation Name from the element that corresponds to a data item. The item is the element in an Items collection that is associated with this ItemAutomationPeer. This method is called by GetName().
Declaration
protected override string GetNameCore()
Returns
Type | Description |
---|---|
System.String | The UI Automation Name from the element that corresponds to a data item. |
Overrides
| Improve this Doc View SourceGetOrientationCore()
Returns a value that indicates whether the element that is associated with this ItemAutomationPeer is laid out in a specific direction. This method is called by GetOrientation().
Declaration
protected override AutomationOrientation GetOrientationCore()
Returns
Type | Description |
---|---|
AutomationOrientation | A value of the enumeration. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Returns an object that supports the requested pattern, based on the patterns supported by this ItemAutomationPeer .
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. |
Overrides
| Improve this Doc View SourceHasKeyboardFocusCore()
Returns a value that indicates whether the item element that is associated with this ItemAutomationPeer currently has keyboard input focus. This method is called by HasKeyboardFocus().
Declaration
protected override bool HasKeyboardFocusCore()
Returns
Type | Description |
---|---|
System.Boolean | true if the element has keyboard input focus; otherwise, false. |
Overrides
| Improve this Doc View SourceIsContentElementCore()
Returns a value that indicates whether the item element that is associated with this ItemAutomationPeer is an element that contains data that is presented to the user. This method is called by IsContentElement().
Declaration
protected override bool IsContentElementCore()
Returns
Type | Description |
---|---|
System.Boolean | true if the element contains data for the user to read; otherwise, false. |
Overrides
| Improve this Doc View SourceIsControlElementCore()
Returns a value that indicates whether the item element that is associated with this ItemAutomationPeer is understood by the end user as interactive. Optionally, the user might understand the element as contributing to the logical structure of the control in the GUI. This method is called by IsControlElement().
Declaration
protected override bool IsControlElementCore()
Returns
Type | Description |
---|---|
System.Boolean | true if the element is interactive; otherwise, false. |
Overrides
| Improve this Doc View SourceIsEnabledCore()
Returns a value that indicates whether the item element that is associated with this ItemAutomationPeer is enabled. This method is called by IsEnabled().
Declaration
protected override bool IsEnabledCore()
Returns
Type | Description |
---|---|
System.Boolean | true if the element is enabled; otherwise, false. |
Overrides
| Improve this Doc View SourceIsKeyboardFocusableCore()
Returns a value that indicates whether the item element that is associated with this ItemAutomationPeer can accept keyboard focus. This method is called by IsKeyboardFocusable().
Declaration
protected override bool IsKeyboardFocusableCore()
Returns
Type | Description |
---|---|
System.Boolean | true if the item element is focusable by the keyboard; otherwise, false. |
Overrides
| Improve this Doc View SourceIsOffscreenCore()
Returns a value that indicates whether the item element that is associated with this ItemAutomationPeer is off the screen. This method is called by IsOffscreen().
Declaration
protected override bool IsOffscreenCore()
Returns
Type | Description |
---|---|
System.Boolean | true if the item element is not on the screen; otherwise, false. |
Overrides
| Improve this Doc View SourceIsPasswordCore()
Returns a value that indicates whether the item element that is associated with this ItemAutomationPeer contains protected content. This method is called by IsPassword().
Declaration
protected override bool IsPasswordCore()
Returns
Type | Description |
---|---|
System.Boolean | true if the item element contains sensitive content; otherwise, false. |
Overrides
| Improve this Doc View SourceIsRequiredForFormCore()
Returns a value that indicates whether the item element that is associated with this ItemAutomationPeer is required to be completed on a form. This method is called by IsRequiredForForm().
Declaration
protected override bool IsRequiredForFormCore()
Returns
Type | Description |
---|---|
System.Boolean | The value that is returned by GetIsRequiredForForm(DependencyObject), if the value is set; otherwise, false. |
Overrides
| Improve this Doc View SourceSetFocusCore()
Sets the keyboard input focus on the item element that is associated with this FrameworkElementAutomationPeer. This method is called by SetFocus().
Declaration
protected override void SetFocusCore()