BarGalleryBaseAutomationPeer Class
Exposes BarGalleryBase types to UI Automation.
public class BarGalleryBaseAutomationPeer : SelectorAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer ItemsControlAutomationPeer SelectorAutomationPeer object
Constructors
BarGalleryBaseAutomationPeer(BarGalleryBase)
Initializes a new instance of the BarGalleryBaseAutomationPeer class.
public BarGalleryBaseAutomationPeer(BarGalleryBase owner)
Parameter | Type | Description |
---|---|---|
owner | BarGalleryBase | The owner element. |
Methods
CreateItemAutomationPeer(object)
When overridden in a derived class, creates a new instance of the ItemAutomationPeer for a data item in the Items collection of this ItemsControl.
protected override ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameter | Type | Description |
---|---|---|
item | object | The data item that is associated with this ItemAutomationPeer. |
Returns
- ItemAutomationPeer:
The new ItemAutomationPeer created.
GetAutomationControlTypeCore()
Gets the control type for the Selector that is associated with this SelectorAutomationPeer. This method is called by GetAutomationControlType().
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
- AutomationControlType:
The List enumeration value.
GetAutomationIdCore()
Gets the string that uniquely identifies the FrameworkElement that is associated with this FrameworkElementAutomationPeer. Called by GetAutomationId().
protected override string GetAutomationIdCore()
Returns
- string:
The automation identifier for the element associated with the FrameworkElementAutomationPeer, or Empty if there isn't an automation identifier.
GetClassNameCore()
Gets the name of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetClassName().
GetNameCore()
Gets the text label of the ContentElement that is associated with this ContentElementAutomationPeer. Called by GetName().
protected override string GetNameCore()
Returns
- string:
The text label of the element that is associated with this automation peer.