A value converter (used by WPF) to convert a Double value into a string, and vice-versa.
Public Member Functions |
|
object | Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
Conversion method from Double to String.
|
|
object | ConvertBack (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
Will interpret a String as a Double.
|
|
Properties |
|
String |
NaNStringReplacement [get, set] |
This String can be set to replace the NaN
string with a more user-friendly result. |
object WPFCustomControls::Converters::DoubleToStringConverter::Convert | ( | object | value, |
Type | targetType, | ||
object | parameter, | ||
System.Globalization.CultureInfo | culture | ||
) | [inline] |
Conversion method from Double to String.
value | standard |
targetType | standard |
parameter | standard |
culture | standard |
object WPFCustomControls::Converters::DoubleToStringConverter::ConvertBack | ( | object | value, |
Type | targetType, | ||
object | parameter, | ||
System.Globalization.CultureInfo | culture | ||
) | [inline] |
Will interpret a String as a Double.
Note that this method does not catch parse exceptions. It is a precondition that the String be in valid Double format, or be Equal (case insensitive) to the NaNStringReplacement value, in which case the value is converted to Double.NaN.
value | standard |
targetType | standard |
parameter | standard |
culture | standard |
String
WPFCustomControls::Converters::DoubleToStringConverter::NaNStringReplacement
[get, set] |
This String can be set to replace the NaN string with a more user-friendly result.
Also useful for localization.