Xamarin.Forms Guides | Samples

Xamarin.Forms.FileImageSource Class

An ImageSource that reads an image from a file.

See Also: FileImageSource

Syntax

[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.FileImageSourceConverter))]
public sealed class FileImageSource : ImageSource

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.FileImageSource are listed below.

See Also: ImageSource

Public Constructors

Creates a new FileImageSource object with default values.

Public Fields

static readonly
FilePropertyBindableProperty. Backing store for the FileImageSource.File property.

Public Properties

FileString. Gets or sets the file from which this FileImageSource will load an image.

Public Methods

override
Cancel() : System.Threading.Tasks.Task<bool>
Request a cancel of the ImageSource loading.

Protected Methods

override
OnPropertyChanged(String)
Method that is called when the property that is specified by propertyName is changed.

Public Operators

static
Conversion to Xamarin.Forms.FileImageSource(Implicit)Allows implicit casting from a string.
static
Conversion to System.String(Implicit)Allows implicit casting to a string.