The RadBusyIndicator control allows you to display an animation indicating that your application is busy waiting for an asynchronous operation to finish.
The control comes with a bunch of predefined animations that can be easily set. You can define your own animations and use them with the RadBusyIndicator control.
The screenshot below shows the control in its default state:
You can use the following properties to fine-tune the behavior of RadBusyIndicator:
- Content - defines the content that is displayed next to the animation. This content may give useful information about the process being indicated by the
- ContentTemplate - defines the template used to represent the content defined in the Content property
- ContentPosition - a property that accepts values from the ContentPosition enum which defines the position of the content relative to the indicator
- IsRunning - a boolean property defining whether the RadBusyIndicator control displays an animation or not.
- IndicatorAnimationStyle - accepts a Style instance which defines the actual indicator animation. Can be used to define a custom indicator animation. For
more information on this property take a look at the Custom animations topic.
In order to use RadBusyIndicator for Windows Phone, the following references are required:
The IsRunning property
RadBusyIndicator allows for playing and stopping its animation by setting the IsRunning property to true or false. When the IsRunning property
is changed, the visibility of RadBusyIndicator is also changed. When IsRunning is set to true the RadBusyIndicator becomes visible, otherwise it is collapsed.
The Content and ContentTemplate
The Content and ContentTemplate properties can be used to define additional content which describes the progress indicated by RadBusyIndicator.
The ContentPosition property
The ContentPosition property defines the position of the content relative to the indicator animation. This property accepts values from the ContentPosition enumeration which
are as follows
- Left - the content is positioned to the left of the indicator animation
- Top - the content is positioned above the indicator animation
- Right - the content is positioned to the right of the indicator animation
- Bottom - the content is positioned below the indicator animation