WPF Currency/Numeric/Percent TextBox

A WPF TextBox for entering a currency/numeric/percent value, similar to how a cash register works.

PROJECT HOSTED ON GITHUB

https://github.com/abbaye/wpf-currency-textbox

NUGET

https://www.nuget.org/packages/CurrencyTextBox/

IMAGE SAMPLE

CurrencyTextBoxSample.png

Features

  • Numbers typed are pushed in from the right. If we start with the default value 0.00, and start typing the numbers 123, the value updates as such: 0.00 => 0.01 => 0.12 => 1.23
  • You can set Maximum and Minimum value.
  • If we press the backspace key, the numbers are shifted right: 1.23 => 0.12 => 0.01 => 0.00
  • If we press the delete key, the value is reset to 0.00.
  • If we press the minus key, the value becomes negative.
  • If we press down/up key, the value are increase/decrease
  • Support stringformat C to C6.
  • Support stringformat N to N6.
  • Support stringformat P to P6.
  • Copy and paste decimal value. ctrlc / ctrlv
  • Undo/Redo value with default ctrlz / ctrly
  • This control's template can be customized to change the appearance.
  • Supports data validation.
  • Auto color (Red/Black) when negative or positive value
  • ...

Release Notes

Goto GitHub for full project release notes

Last edited Feb 28, 2016 at 8:13 PM by abbaye, version 6