ConvertFrom Method
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Attempts to convert to a ImageSource from the given object.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | The ITypeDescriptorContext for this call. |
System.Globalization.CultureInfo | culture | The CultureInfo which is respected when converting. |
System.Object | value | The object to convert to an instance of ImageSource. |
Returns
Type | Description |
---|---|
System.Object | The ImageSource which was constructed. |
Overrides
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object)
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | A NotSupportedException is thrown if the example object is null or is not a valid type which can be converted to a ImageSource. |