In This Article

NumericBadgeAutomationPeer Class

Exposes NumericBadge types to UI Automation.

public class NumericBadgeAutomationPeer : BadgeAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer BadgeAutomationPeer object

Remarks

The NumericBadge 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

NumericBadgeAutomationPeer(NumericBadge)

Initializes a new instance of the class.

public NumericBadgeAutomationPeer(NumericBadge owner)
Parameter Type Description
owner NumericBadge

The owner element.

Properties

IsReadOnly

Gets a value that specifies whether the value of a control is read-only.

public bool IsReadOnly { get; }

Property Value

bool:

true if the value is read-only; false if it can be modified.

Value

Gets the value of the control.

public string Value { get; }

Property Value

string:

The value of the control as a string.

Methods

GetLocalizedControlTypeCore()

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

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

GetPattern(PatternInterface)

Gets the control pattern for the UIElement that is associated with this UIElementAutomationPeer.

public override object GetPattern(PatternInterface patternInterface)
Parameter Type Description
patternInterface PatternInterface

A value from the enumeration.

Returns

object:

An object that implements the ISynchronizedInputProvider interface if patternInterface is SynchronizedInput; otherwise, null.

Inherited Members