C# Class LogoFX.Client.Mvvm.View.Infra.Converters.PercentageFormatConverter

Provides a way to apply custom formating to a binding value multiplied by 100.
Inheritance: IValueConverter
ファイルを表示 Open project: LogoFX/LogoFX

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, System.String culture ) : object

Modifies the source data before passing it to the target for display in the UI.

ConvertBack ( object value, Type targetType, object parameter, System.String culture ) : object

Modifies the target data before passing it to the source object. This method is called only in F:System.Windows.Data.BindingMode.TwoWay bindings.

Method Details

Convert() public method

Modifies the source data before passing it to the target for display in the UI.
public Convert ( object value, Type targetType, object parameter, System.String culture ) : object
value object The value produced by the binding source.
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System.String The culture to use in the converter.
return object

ConvertBack() public method

Modifies the target data before passing it to the source object. This method is called only in F:System.Windows.Data.BindingMode.TwoWay bindings.
public ConvertBack ( object value, Type targetType, object parameter, System.String culture ) : object
value object The value that is produced by the binding target.
targetType System.Type The type to convert to.
parameter object The converter parameter to use.
culture System.String The culture to use in the converter.
return object