Skip to main content

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

Converts the given object to a TimeSpan.

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
An optional CultureInfo. If not supplied, the current culture is assumed.
  Object
The Object to convert.

Return Value

Object
An Object that represents the converted value.

Exceptions

NotSupportedExceptionThe conversion cannot be performed.
FormatExceptionvalue is not a valid value for the target type.

See Also

Reference

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