CanConvertFrom(ITypeDescriptorContext, Type) Method
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
Definition
Namespace: Avalonia.Markup.Xaml.Converters
Assembly: Avalonia.Markup.Xaml (in Avalonia.Markup.Xaml.dll)
- C#
- VB
- F#
public override bool CanConvertFrom(
ITypeDescriptorContext? context,
Type sourceType
)
Public Overrides Function CanConvertFrom (
context As ITypeDescriptorContext,
sourceType As Type
) As Boolean
abstract CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
override CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
Parameters
- ITypeDescriptorContext
- An ITypeDescriptorContext that provides a format context.
- Type
- A Type that represents the type you want to convert from.
Return Value
Boolean
true if this converter can perform the conversion; otherwise, false.
See Also
Reference
AvaloniaUriTypeConverter Class
CanConvertFrom Overload
Avalonia.Markup.Xaml.Converters Namespace