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.
Methods
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by GetLocalizedControlType().
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
.