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
Initializes a new instance of the RadBusyIndicatorAutomationPeer class.
Properties
Gets a value indicating whether the RadBusyIndicator is in a read-only state.
public bool IsReadOnly { get; }
Gets or sets the amount by which the value of the control changes when the user adjusts the value with a large change action.
public double LargeChange { get; }
Gets or sets the maximum duration for the busy indicator.
public double Maximum { get; }
Gets or sets the minimum value for the RadBusyIndicator.
public double Minimum { get; }
Gets or sets the amount the value changes when the user interacts with the RadBusyIndicator.
public double SmallChange { get; }
ToggleState
ToggleState
Retrieves the toggle state of the control.
public ToggleState ToggleState { get; }
For busy indicator control the toggle state is reflected by the IsBusy value. True - ToggleState.On False - ToggleState.Off.
Methods
Gets the control type for the RadBusyIndicatorAutomationPeer.
protected override AutomationControlType GetAutomationControlTypeCore()
AutomationControlType
The System.Windows.Automation.ControlType.ProgressBar control type.
Gets the localized control type for the RadBusyIndicatorAutomationPeer.
protected override string GetLocalizedControlTypeCore()
The localized string type of the control.
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().
Gets the specified pattern for the RadBusyIndicatorAutomationPeer.
public override object GetPattern(PatternInterface patternInterface)
The pattern interface to retrieve.
Returns:The requested pattern.
Sets the value of the RadBusyIndicator control.
public void SetValue(double value)
The double value to set for the RadBusyIndicator.
Toggles the busy state of the RadBusyIndicator.
public void Toggle()