Skip to content

IconElementConverter.CanConvertFrom(ITypeDescriptorContext?, Type) method

Defined in

Type: IconElementConverter Namespace: CrissCross.WPF.UI.Controls Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)

Summary: Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.

Parameters

NameTypeDescription
contextITypeDescriptorContext?An ITypeDescriptorContext that provides a format context.
sourceTypeTypeA Type that represents the type you want to convert from.

Returns: bool -- true if this converter can perform the conversion; otherwise, false.