Skip to main content

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

Converts the given object to the type of this converter, using the specified context and culture information.

Definition​

Namespace: Avalonia.Markup.Xaml.Converters
Assembly: Avalonia.Markup.Xaml (in Avalonia.Markup.Xaml.dll)

public override Object ConvertFrom(
ITypeDescriptorContext? context,
CultureInfo? culture,
Object value
)

Parameters​

  ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
  CultureInfo
The CultureInfo to use as the current culture.
  Object
The Object to convert.

Return Value​

Object
An Object that represents the converted value.

Exceptions​

NotSupportedExceptionThe conversion cannot be performed.

See Also​

Reference​

BitmapTypeConverter Class
ConvertFrom Overload
Avalonia.Markup.Xaml.Converters Namespace