Xamarin.Forms Guides | Samples

Xamarin.Forms.ActivityIndicator Class

A visual control used to indicate that something is ongoing.

See Also: ActivityIndicator

Syntax

[Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._ActivityIndicatorRenderer))]
public class ActivityIndicator : View, IElementConfiguration<ActivityIndicator>

Remarks

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:

PropertyValue
Color

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

IsRunning

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" />

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

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.