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.
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.
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.