IValueConverter.

Convert(object, Type, object, CultureInfo) Method

Summary

Converts a value.
Namespace
Avalonia.Data.Converters
Containing Type
IValueConverter

Syntax

object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Remarks

This method should not throw exceptions. If the value is not convertible, return a BindingNotification in an error state. Any exceptions thrown will be treated as an application exception.

Parameters

Name Type Description
value object The value to convert.
targetType Type The type of the target.
parameter object A user-defined parameter.
culture CultureInfo The culture to use.

Return Value

Type Description
object The converted value.