Skip to main content

Convert Method

Converts multi-binding inputs to a final value.

Definition​

Namespace: Avalonia.Data.Converters
Assembly: Avalonia.Base (in Avalonia.Base.dll)

Object? Convert(
IList<Object?> values,
Type targetType,
Object? parameter,
CultureInfo culture
)
View Source

Parameters​

  IList(Object)
The values to convert.
  Type
The type of the target.
  Object
A user-defined parameter.
  CultureInfo
The culture to use.

Return Value​

Object
The converted value.

Remarks​

This method should not throw exceptions. If the value is not convertible, return UnsetValue. Any exception thrown will be treated as an application exception.

See Also​

Reference​

IMultiValueConverter Interface
Avalonia.Data.Converters Namespace