Converts Double values to String vice-versa.

Namespace: Dapfor.Wpf.Converters
Assembly: Dapfor.Wpf (in Dapfor.Wpf.dll) Version: 4.1.0.26317 (4.1.0.26317)

Syntax

C#
public class DoubleConverter : IValueConverter
Visual Basic
Public Class DoubleConverter
	Implements IValueConverter
Visual C++
public ref class DoubleConverter : IValueConverter
F#
type DoubleConverter =  
    class
        interface IValueConverter
    end

Remarks

 Copy imageCopy
public class Product
{
    private double _price;

    [DoubleConverter(Precision = 3, ShortForm = true, ShowZero = false)]
    public double Price
    {
        get { return _price; }
    }
}

//Other way to set up the converter
grid.Headers[0]["SomeColumn"].ValueConverter = new DoubleConverter(2, false, false);

Inheritance Hierarchy

System..::..Object
  Dapfor.Wpf.Converters..::..DoubleConverter

See Also