Table of Contents

Class EnumToBooleanConverter

Namespace
BSGameLib.UI
Assembly
BSGameLib.UI.dll

Converts between an enum value and a bool, for a radio button or check box bound to one of the values. The converter parameter is the value the binding stands for.

public class EnumToBooleanConverter : IValueConverter
Inheritance
EnumToBooleanConverter
Implements
Inherited Members

Methods

Convert(object, Type, object, CultureInfo)

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

public 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.

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

Parameters

value object
targetType Type
parameter object
culture CultureInfo

Returns

object