C# Class 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.
Inheritance: IValueConverter
Afficher le fichier Open project: ProjPossibility/CSUN-MobileMapMagnifier

Méthodes publiques

Méthode Description
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.

Method Details

Convert() public méthode

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. ///
Résultat object

ConvertBack() public méthode

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
Résultat object