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
contextITypeDescriptorContextThe ITypeDescriptorContext for this call.
cultureCultureInfoThe CultureInfo which is respected when converting.
valueobjectThe 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.