IValueConverter

Transforms a bound value on its way to (and optionally back from) the UI.

Public Methods

Convert

 object? Convert(object? value)

Source → target.

Parameters:

  • value (object?): The source value.

Returns: object?

ConvertBack

 object? ConvertBack(object? value)

Target → source, for two-way bindings. Defaults to identity.

Parameters:

  • value (object?): The value from the UI control.

Returns: object?