Table of Contents

Interface IValueConverter

Namespace
BSGameLib.UI
Assembly
BSGameLib.UI.dll

Converts a value between a view-model property and the control bound to it.

public interface IValueConverter

Methods

Convert(object, Type, object, CultureInfo)

Converts value from the view-model for the control. parameter is the converter parameter the binding gives.

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

Parameters

value object
targetType Type
parameter object
culture CultureInfo

Returns

object

ConvertBack(object, Type, object, CultureInfo)

Converts value from the control back for the view-model.

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

Parameters

value object
targetType Type
parameter object
culture CultureInfo

Returns

object