C# Class ERP.StringFormatValueConverter

Two way IValueConverter that lets you bind a property on a bindable object that can be an empty string value to a dependency property that should be set to null in that case
Inheritance: IValueConverter
Exibir arquivo Open project: arthurgfonseca/ERP-Grupo5

Public Methods

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

Converts the value to a formatted string using the format specified in the constructor.

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

Not supported.

StringFormatValueConverter ( string formatString ) : System

Creates a new StringFormatValueConverter

Method Details

Convert() public method

Converts the value to a formatted string using the format specified in the constructor.
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object The value to format.
targetType System.Type The target output type (ignored).
parameter object Optional parameter (ignored).
culture System The culture to use in the format operation.
return object

ConvertBack() public method

Not supported.
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object Ignored.
targetType System.Type Ignored.
parameter object Ignored.
culture System Ignored.
return object

StringFormatValueConverter() public method

Creates a new StringFormatValueConverter
public StringFormatValueConverter ( string formatString ) : System
formatString string Format string, it can take zero or one parameters, the first one being replaced by the source value
return System