C# Class ZoomAndPanSample.ScaleToPercentConverter

Used in MainWindow.xaml to converts a scale value to a percentage. It is used to display the 50%, 100%, etc that appears underneath the zoom and pan control.
Inheritance: IValueConverter
Mostra file Open project: Zoomicon/ZUI

Public Methods

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

Method Details

Convert() public method

public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object

ConvertBack() public method

public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object