Table of Contents

Method ConvertFrom

Namespace
Alternet.FormDesigner.Wpf.PropertyGrid
Assembly
Alternet.FormDesigner.Wpf.v10.dll

ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

Attempts to convert to a ImageSource from the given object.

public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)

Parameters

context ITypeDescriptorContext

The ITypeDescriptorContext for this call.

culture CultureInfo

The CultureInfo which is respected when converting.

value object

The object to convert to an instance of ImageSource.

Returns

object

The ImageSource which was constructed.

Exceptions

NotSupportedException

A NotSupportedException is thrown if the example object is null or is not a valid type which can be converted to a ImageSource.