Bagikan melalui


FileImageSourceConverter Class

Definition

A TypeConverter that converts to FileImageSource.

[Xamarin.Forms.Xaml.TypeConversion(typeof(Xamarin.Forms.FileImageSource))]
public sealed class FileImageSourceConverter : Xamarin.Forms.TypeConverter
type FileImageSourceConverter = class
    inherit TypeConverter
Inheritance
System.Object
FileImageSourceConverter
Attributes

Constructors

FileImageSourceConverter()

Creates a new FileImageSource with default values.

Methods

CanConvertFrom(Type)

When implemented in a derived class, returns a Boolean value that indicates whether or not the derived type converter can convert sourceType to its target type.

(Inherited from TypeConverter)
ConvertFrom(CultureInfo, Object)
Obsolete.

When implemented in a derived class, converts an object that is a version of value and that can be cast to the target type.

(Inherited from TypeConverter)
ConvertFrom(Object)
Obsolete.

Calls ConvertFrom(CultureInfo, Object) with the current culture information and o.

(Inherited from TypeConverter)
ConvertFromInvariantString(String)

Creates a file image source given a path to an image.

Applies to