C# 클래스 MediaOwl.Core.FiveStarRatingConverter

An IValueConverter which converts a double-Rating from 0 to 5 to a double-Rating from 0 to 1.
상속: IValueConverter
파일 보기 프로젝트 열기: Slesa/Playground

공개 메소드들

메소드 설명
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Convertst to 20 % of the initial value

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

Converts to 500 % of the initial value

메소드 상세

Convert() 공개 메소드

Convertst to 20 % of the initial value
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The source data being passed to the target.
targetType System.Type The of data expected by the target dependency property.
parameter object An optional parameter to be used in the converter logic.
culture System.Globalization.CultureInfo The culture of the conversion.
리턴 object

ConvertBack() 공개 메소드

Converts to 500 % of the initial value
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The source data being passed to the target.
targetType System.Type The of data expected by the target dependency property.
parameter object An optional parameter to be used in the converter logic.
culture System.Globalization.CultureInfo The culture of the conversion.
리턴 object