Class
IntToTextConverter

Definition

Namespace:ArtOfTest.WebAii.Design.UI

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class IntToTextConverter : IValueConverter

Inheritance: objectIntToTextConverter

Implements: IValueConverter

Constructors

IntToTextConverter()

Declaration

cs-api-definition
public IntToTextConverter()

Properties

Instance

Declaration

cs-api-definition
public static IntToTextConverter Instance { get; }

Property Value

IntToTextConverter

Methods

Convert(object, Type, object, CultureInfo)

Modifies the source data before passing it to the target for display in the UI.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The source data being passed to the target.

targetType

Type

The Type of data expected by the target dependency property.

parameter

object

An optional parameter to be used in the converter logic.

culture

CultureInfo

The culture of the conversion.

Returns

object

The value to be passed to the target dependency property.

Implements IValueConverter.Convert(object, Type, object, CultureInfo)

ConvertBack(object, Type, object, CultureInfo)

Modifies the target data before passing it to the source object. This method is called only in TwoWay bindings.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The target data being passed to the source.

targetType

Type

The Type of data expected by the source object.

parameter

object

An optional parameter to be used in the converter logic.

culture

CultureInfo

The culture of the conversion.

Returns

object

The value to be passed to the source object.

Implements IValueConverter.ConvertBack(object, Type, object, CultureInfo)