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)

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

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.

Implements

IMultiValueConverter.Convert(IList(Object), Type, Object, CultureInfo)

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

StringFormatMultiValueConverter Class
Avalonia.Data.Converters Namespace