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
파일 보기 프로젝트 열기: ProjPossibility/CSUN-MobileMapMagnifier

공개 메소드들

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