Class
RadBusyIndicatorAutomationPeer

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:

cs-api-definition
public class RadBusyIndicatorAutomationPeer : FrameworkElementAutomationPeer, IRangeValueProvider, IToggleProvider

Inheritance: objectRadBusyIndicatorAutomationPeer

Implements: IRangeValueProviderIToggleProvider

Constructors

RadBusyIndicatorAutomationPeer(RadBusyIndicator)

Initializes a new instance of the RadBusyIndicatorAutomationPeer class.

Declaration

cs-api-definition
public RadBusyIndicatorAutomationPeer(RadBusyIndicator owner)

Parameters

owner

RadBusyIndicator

Properties

IsReadOnly

Gets a value indicating whether the RadBusyIndicator is in a read-only state.

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

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.

Declaration

cs-api-definition
public double LargeChange { get; }

Property Value

double

Maximum

Gets or sets the maximum duration for the busy indicator.

Declaration

cs-api-definition
public double Maximum { get; }

Property Value

double

Minimum

Gets or sets the minimum value for the RadBusyIndicator.

Declaration

cs-api-definition
public double Minimum { get; }

Property Value

double

SmallChange

Gets or sets the amount the value changes when the user interacts with the RadBusyIndicator.

Declaration

cs-api-definition
public double SmallChange { get; }

Property Value

double

ToggleState

Retrieves the toggle state of the control.

Declaration

cs-api-definition
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.

Value

Gets or sets the value of the busy indicator, indicating its current operational state.

Declaration

cs-api-definition
public double Value { get; }

Property Value

double

Methods

GetAutomationControlTypeCore()

Gets the control type for the RadBusyIndicatorAutomationPeer.

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

The System.Windows.Automation.ControlType.ProgressBar control type.

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetHelpTextCore()

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

GetItemStatusCore()

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

GetLocalizedControlTypeCore()

Gets the localized control type for the RadBusyIndicatorAutomationPeer.

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

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().

Declaration

cs-api-definition
protected override string GetNameCore()

Returns

string

GetPattern(PatternInterface)

Gets the specified pattern for the RadBusyIndicatorAutomationPeer.

Declaration

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

The pattern interface to retrieve.

Returns

object

The requested pattern.

SetValue(double)

Sets the value of the RadBusyIndicator control.

Declaration

cs-api-definition
public void SetValue(double value)

Parameters

value

double

The double value to set for the RadBusyIndicator.

Toggle()

Toggles the busy state of the RadBusyIndicator.

Declaration

cs-api-definition
public void Toggle()