C# Класс GPS.Converters.AngleToRenderTransform

Converter that transforms an angle into a RotateTransform. Note: One may be tempted to directly bind the Angle property of a RotateTransform. That will only work in WPF and not in Silverlight for WPF7. In Silverlight/WPF7 binding can be applied only to a FrameworkElement and RotateTransform is not a FrameworkElement.
Наследование: IValueConverter
Показать файл Открыть проект

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

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

Converts the source data (value) that represents an angle measured in degrees to a RotateTransform before passing it to the target of a data binding for display in the UI.

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

The ConvertBack is not implemented for this converter. ConvertBack will throw NotImplementedException if invoked.

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

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

Converts the source data (value) that represents an angle measured in degrees to a RotateTransform before passing it to the target of a data binding for display in the UI.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object /// The source data being passed to the target. /// This represents an angle measured in degrees. ///
targetType System.Type /// The type of data expected by the target dependency property. ///
parameter object /// It will be ignored by this converter. ///
culture System.Globalization.CultureInfo /// The culture of the conversion. Ignored by this converter. ///
Результат object

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

The ConvertBack is not implemented for this converter. ConvertBack will throw NotImplementedException if invoked.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
Результат object