Bagikan melalui


Image.IsLoading Property

Definition

Gets the loading status of the image. This is a bindable property.

public bool IsLoading { get; }
member this.IsLoading : bool

Property Value

System.Boolean

A System.Boolean indicating if the image is loading. Default is false.

Implements

Remarks

The following example illustrates running a ActivityIndicator to indicate that the image is loading:

var image = new Image { 
  Source = new ImageLoader {
    Uri = new Uri ("http://eoimages.gsfc.nasa.gov/images/imagerecords/57000/57723/globe_west_2048.jpg"),
    CachingEnabled = false,
  },
  WidthRequest = 200,
  HeightRequest = 200,
};

var indicator = new ActivityIndicator {Color = new Color (.5),};
indicator.SetBinding (ActivityIndicator.IsRunningProperty, "IsLoading");
indicator.BindingContext = image;

Applies to