C# Класс MediaOwl.Core.FiveStarRatingConverter

An IValueConverter which converts a double-Rating from 0 to 5 to a double-Rating from 0 to 1.
Наследование: IValueConverter
Показать файл Открыть проект

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

Метод Описание
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