Method ConvertFrom
ConvertFrom(ITypeDescriptorContext?, CultureInfo?, object)
Converts the given object to the converter's native type.
public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
Parameters
contextITypeDescriptorContextA TypeDescriptor that provides a format context. You can use this object to get additional information about the environment from which this converter is being invoked.
cultureCultureInfoA CultureInfo that specifies the culture to represent the brush.
valueobjectThe object to convert.
Returns
Exceptions
- ArgumentException
The conversion cannot be performed.