IValueConverterConvert Method
Converts a value.
Namespace: Avalonia.Data.ConvertersAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
Object? Convert(
Object? value,
Type targetType,
Object? parameter,
CultureInfo culture
)
Function Convert (
value As Object,
targetType As Type,
parameter As Object,
culture As CultureInfo
) As Object
abstract Convert :
value : Object *
targetType : Type *
parameter : Object *
culture : CultureInfo -> Object
- 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.
ObjectThe converted value.
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.