Xamarin.Forms Guides | Samples

Xamarin.Forms.ActivityIndicator Class

A visual control used to indicate that something is ongoing.

See Also: ActivityIndicator


public class ActivityIndicator : View, IElementConfiguration<ActivityIndicator>


This control gives a visual clue to the user that something is happening, without information about its progress.

XAML for Xamarin.Forms supports the following properties for the ActivityIndicator class:


A color specification, with or without the prefix, "Color". For example, "Color.Red" and "Red" both specify the color red.


true or false, to indicate whether the animation for ActivityIndicator is displayed.

The example below creates a red activity indicator that is animated to imply that an activity is ongoing:

XAML Example

<ActivityIndicator Color="Red" IsRunning="true" />


Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions:,,,,,,

The members of Xamarin.Forms.ActivityIndicator are listed below.

See Also: View

Public Constructors

Initializes a new instance of the ActivityIndicator class.

Public Fields

static readonly
ColorPropertyBindableProperty. Identifies the Color bindable property.
static readonly
IsRunningPropertyBindableProperty. Identifies the Color bindable property.

Public Properties

ColorColor. Gets or sets the Color of the ActivityIndicator. This is a bindable property.
IsRunningBoolean. Gets or sets the value indicating if the ActivityIndicator is running. This is a bindable property.

Public Methods

On<T>() : IPlatformElementConfiguration<T, ActivityIndicator>
Returns the platform-specific instance of this ActivityIndicator, on which a platform-specific method may be called.