Convert Method
Converts multi-binding inputs to a final value.
Definition
Namespace: Avalonia.Data.Converters
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public Object? Convert(
IList<Object?> values,
Type targetType,
Object? parameter,
CultureInfo culture
)
Public Function Convert (
values As IList(Of Object),
targetType As Type,
parameter As Object,
culture As CultureInfo
) As Object
abstract Convert :
values : IList<Object> *
targetType : Type *
parameter : Object *
culture : CultureInfo -> Object
override Convert :
values : IList<Object> *
targetType : Type *
parameter : Object *
culture : CultureInfo -> Object
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