C# Class System.Windows.Controls.EnumDisplayNameConverter

Represents a value converter that is used to get the localized name of an enumeration value.
Inheritance: IValueConverter
Mostrar archivo Open project: lecode-official/mvvm-framework

Public Methods

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

Convertes the value parameter from an enumeration value to the localized name of the enumeration value.

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

Converting a localized name back to its enumeration value is impossible. Therefore this method is not implemented.

Method Details

Convert() public method

Convertes the value parameter from an enumeration value to the localized name of the enumeration value.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value of an enum that is to be converted.
targetType Type The type to which the value is to be converted. In this case it is always string.
parameter object A paramter that is not used in this implementation.
culture System.Globalization.CultureInfo The culture information of the current culture, so that parsing can be adjusted to cultural conventions.
return object

ConvertBack() public method

Converting a localized name back to its enumeration value is impossible. Therefore this method is not implemented.
Since this functionality is unsupported, the method always throws a exception.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object Not supported in this implementation.
targetType Type Not supported in this implementation.
parameter object Not supported in this implementation.
culture System.Globalization.CultureInfo Not supported in this implementation.
return object