BadgeAutomationPeer Class
Exposes Badge types to UI Automation.
public class BadgeAutomationPeer : FrameworkElementAutomationPeer
- Inheritance:
- object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object
- Derived:
- NumericBadgeAutomationPeer
Remarks
The Badge control is not focusable and cannot be interacted with, so it is not included
in the Content
or Control
views of the UI Automation Tree.
Constructors
BadgeAutomationPeer(Badge)
Initializes a new instance of the class.
public BadgeAutomationPeer(Badge owner)
Parameter | Type | Description |
---|---|---|
owner | Badge | The owner element. |
Methods
GetAutomationControlTypeCore()
Gets the control type for the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetAutomationControlType().
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
- AutomationControlType:
The Custom enumeration value.
GetClassNameCore()
Gets the name of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetClassName().
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by GetLocalizedControlType().
IsContentElementCore()
Gets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer is an element that contains data that is presented to the user. This method is called by IsContentElement().
IsControlElementCore()
Gets or sets a value that indicates whether the UIElement that is associated with this UIElementAutomationPeer is understood by the end user as interactive. Optionally, the user might understand the UIElement as contributing to the logical structure of the control in the GUI. This method is called by IsControlElement().