0

I'm looking to accept digits and the decimal point for forms, using WPF application.

I am new to WPF

I want a textbox that takes only numeric values, in the format

12.3456

that is, 2 places before decimal point and 4 places after it.

H.B.
  • 166,899
  • 29
  • 327
  • 400

1 Answers1

0

Too bad TextBox has no Property to set the DataType of the field and the amount of Decimal Places it can hold, had to make a UserControl that does exactly what you want.

Offtopic aside, use Regex, I usually use this website to build them.

Steven Borges
  • 401
  • 1
  • 3
  • 16