AnimatedProgressBarAutomationPeer Class
Exposes AnimatedProgressBar types to UI Automation.
public class AnimatedProgressBarAutomationPeer : RangeBaseAutomationPeer, IRangeValueProvider, IValueProvider
- Inheritance:
- Object DispatcherObject AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer RangeBaseAutomationPeer Object
Constructors
AnimatedProgressBarAutomationPeer(AnimatedProgressBar)
Initializes a new instance of the AnimatedProgressBarAutomationPeer class.
public AnimatedProgressBarAutomationPeer(AnimatedProgressBar owner)
Parameter | Type | Description |
---|---|---|
owner | AnimatedProgressBar | The owner. |
Methods
GetAutomationControlTypeCore()
Gets the control type for the UIElement that is associated with this AnimatedProgressBarAutomationPeer. This method is called by GetAutomationControlType().
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
- AutomationControlType:
The ProgressBar enumeration value.
GetClassNameCore()
Gets the name of the UIElement that is associated with this AnimatedProgressBarAutomationPeer. This method is called by GetClassName().
GetPattern(PatternInterface)
Gets the object that supports the specified control pattern of the element that is associated with this automation peer.
public override object GetPattern(PatternInterface patternInterface)
Parameter | Type | Description |
---|---|---|
patternInterface | PatternInterface | A value in the enumeration. |
Returns
- Object:
This method will return a
this
pointer in the follow cases:-
If
patternInterface
is Value. -
If
patternInterface
is RangeValue and the owning AnimatedProgressBar has IsIndeterminate set tofalse
.
-
If