C# Class Cimbalino.Phone.Toolkit.Controls.EnumValueConverter

An IValueConverter which converts a Enum value to a string value.
Inheritance: IValueConverter
Show file Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, System culture ) : object

Converts an Enum value to a string value.

ConvertBack ( object value, Type targetType, object parameter, System culture ) : object

Converts a string value to an Enum value.

Method Details

Convert() public method

Converts an Enum value to a string value.
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object The value produced by the binding source.
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System The culture to use in the converter.
return object

ConvertBack() public method

Converts a string value to an Enum value.
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object The value produced by the binding source.
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System The culture to use in the converter.
return object