ClassRadBusyIndicatorAutomationPeer
Represents the automation peer for the RadBusyIndicator control, providing support for UI automation and control patterns. This class enables interaction with the RadBusyIndicator from automated UI test frameworks and exposes the properties and behaviors of the RadBusyIndicator control for accessibility.
It implements the IRangeValueProvider and IToggleProvider interfaces, allowing automated tools to read and manipulate the control's busy state and value through the UI Automation framework. The automation peer also offers additional metadata such as localized control type, control name, and control status.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class RadBusyIndicatorAutomationPeer : FrameworkElementAutomationPeer, IRangeValueProvider, IToggleProvider
Inheritance: objectRadBusyIndicatorAutomationPeer
Implements:
Constructors
RadBusyIndicatorAutomationPeer(RadBusyIndicator)
Initializes a new instance of the RadBusyIndicatorAutomationPeer class.
Declaration
public RadBusyIndicatorAutomationPeer(RadBusyIndicator owner)
Parameters
owner
Properties
IsReadOnly
Gets a value indicating whether the RadBusyIndicator is in a read-only state.
LargeChange
Gets or sets the amount by which the value of the control changes when the user adjusts the value with a large change action.
Maximum
Gets or sets the maximum duration for the busy indicator.
Minimum
Gets or sets the minimum value for the RadBusyIndicator.
SmallChange
Gets or sets the amount the value changes when the user interacts with the RadBusyIndicator.
ToggleState
Retrieves the toggle state of the control.
Declaration
public ToggleState ToggleState { get; }
Property Value
ToggleState
Remarks
For busy indicator control the toggle state is reflected by the IsBusy value. True - ToggleState.On False - ToggleState.Off.
Methods
GetAutomationControlTypeCore()
Gets the control type for the RadBusyIndicatorAutomationPeer.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
The System.Windows.Automation.ControlType.ProgressBar control type.
GetLocalizedControlTypeCore()
Gets the localized control type for the RadBusyIndicatorAutomationPeer.
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
The localized string type of the control.
GetNameCore()
Gets the text label of the System.Windows.ContentElement that is associated with this System.Windows.Automation.Peers.ContentElementAutomationPeer. Called by System.Windows.Automation.Peers.AutomationPeer.GetName().
GetPattern(PatternInterface)
Gets the specified pattern for the RadBusyIndicatorAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
The pattern interface to retrieve.
Returns
The requested pattern.
SetValue(double)
Sets the value of the RadBusyIndicator control.
Declaration
public void SetValue(double value)
Parameters
value
The double value to set for the RadBusyIndicator.
Toggle()
Toggles the busy state of the RadBusyIndicator.
Declaration
public void Toggle()