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
context
ITypeDescriptorContextA 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.
culture
CultureInfoA CultureInfo that specifies the culture to represent the brush.
value
objectThe object to convert.
Returns
Exceptions
- ArgumentException
The conversion cannot be performed.