C# Класс Windows.Mvvm.UI.Controls.EnumDisplayNameConverter

Represents a value converter that is used to get the localized name of an enumeration value.
Наследование: IValueConverter
Показать файл Открыть проект

Открытые методы

Метод Описание
Convert ( object value, Type targetType, object parameter, string language ) : object

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

ConvertBack ( object value, Type targetType, object parameter, string language ) : object

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

Описание методов

Convert() публичный Метод

Convertes the value parameter from an enumeration value to the localized name of the enumeration value.
public Convert ( object value, Type targetType, object parameter, string language ) : object
value object The value of an enum that is to be converted.
targetType System.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.
language string The name of the language, so that parsing can be adjusted to cultural conventions.
Результат object

ConvertBack() публичный Метод

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, string language ) : object
value object Not supported in this implementation.
targetType System.Type Not supported in this implementation.
parameter object Not supported in this implementation.
language string Not supported in this implementation.
Результат object