In This Article

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().

protected override string GetClassNameCore()

Returns

string:

An Empty string.

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

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().

protected override bool IsContentElementCore()

Returns

bool:

true.

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().

protected override bool IsControlElementCore()

Returns

bool:

true.