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

Syntax

public sealed class ImageSourceConverter : TypeConverter

Requirements

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

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

See Also: TypeConverter

Public Constructors

Creates a new ImageSourceConverter with default values.

Public Methods

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