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
ITypeDescriptorContextThe ITypeDescriptorContext for this call.
culture
CultureInfoThe CultureInfo which is respected when converting.
value
objectThe 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.