Xamarin.Forms Guides | Samples

Xamarin.Forms.ImageSourceConverter Class

Class that takes a string representation of an image file location and returns a ImageSource from the specified resource.

See Also: ImageSourceConverter


public sealed class ImageSourceConverter : TypeConverter


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

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

See Also: TypeConverter

Public Constructors

Creates a new ImageSourceConverter with default values.

Public Methods

CanConvertFrom(Type) : Boolean
Returns true if the converter can create and return a ImageSource for items of the specified source type. Otherwise, false.
ConvertFrom(CultureInfo, Object) : Object
Creates and returns a ImageSource for the specified value and culture.
ConvertFromInvariantString(String) : Object
Returns an image source created from a URI that is contained in value.