C# 클래스 Windows.Mvvm.UI.Controls.EnumDisplayNameConverter

Represents a value converter that is used to get the localized name of an enumeration value.
상속: IValueConverter
파일 보기 프로젝트 열기: lecode-official/mvvm-framework

공개 메소드들

메소드 설명
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