Xamarin.Forms by Xamarin Inc.

<PackageReference Include="Xamarin.Forms" Version="2.0.1.6492-pre1" />

.NET API 803,328 bytes

 ImageSource

public abstract class ImageSource : Element
Abstract class whose implementors load images from files or the Web.

Gets the CancellationTokenSource.

public static ImageSource FromFile(string file)

Returns a new FileImageSource that reads from file.

public static ImageSource FromResource(string resource, Type resolvingType)

public static ImageSource FromResource(string resource, Assembly sourceAssembly = null)

public static ImageSource FromStream(Func<Stream> stream)

Returns a new StreamImageSource that reads from stream.

public static ImageSource FromUri(Uri uri)

Returns a new UrimageSource that reads from uri.

public static ImageSource op_Implicit(string source)

Allows implicit casting from a string that represents an absolute URI.

public static ImageSource op_Implicit(Uri uri)

Allows implicit casting from Uri objects that were created with an absolute URI.

public virtual Task<bool> Cancel()

Request a cancel of the ImageSource loading.

protected void OnLoadingCompleted(bool cancelled)

Called by inheritors to indicate the end of the loading of the source.

protected void OnLoadingStarted()

Called by inheritors to indicate the beginning of a loading operation.

protected void OnSourceChanged()

Called by inheritors to indicate that the source changed..