Skip to main content

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

Attempts to convert to a DataGridLength from the given object.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.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 for the conversion.
  Object
The object to convert to a GridLength.

Return Value

Object
The GridLength instance which was constructed.

Exceptions

NotSupportedExceptionA NotSupportedException is thrown if the example object is null.

See Also

Reference

DataGridLengthConverter Class
ConvertFrom Overload
Avalonia.Controls Namespace