Interface IValueConverter

Definition

Namespace:
Tizen.NUI.Binding
Assembly:
Tizen.NUI.dll
C#
Copy
public interface IValueConverter

Methods

View Source

Convert(Object, Type, Object, CultureInfo)

Converts a value.

Declaration
C#
Copy
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type Name Description
Object value

The value produced by the binding source.

Type targetType

The type of the binding target property.

Object parameter

The converter parameter to use.

CultureInfo culture

The culture to use in the converter.

Returns
Type Description
Object

A converted value. If the method returns null, the valid null value is used.

View Source

ConvertBack(Object, Type, Object, CultureInfo)

Converts a value.

Declaration
C#
Copy
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type Name Description
Object value

The value that is produced by the binding target.

Type targetType

The type to convert to.

Object parameter

The converter parameter to use.

CultureInfo culture

The culture to use in the converter.

Returns
Type Description
Object

A converted value. If the method returns null, the valid null value is used.

Extension Methods