Click here to Skip to main content
15,882,152 members
Articles / Desktop Programming / WPF

Number Only Behavior for WPF

Rate me:
Please Sign up or sign in to vote.
5.00/5 (11 votes)
1 Oct 2015CPOL3 min read 43.5K   1.2K   17  
Presents a behavior to prevent entry of anything but digits into a control
The original verion of this control only allowed numeric entry, an update allowed the minus sign and period. If the minus sign is pressed the sign of the number is reversed. If the period is pressed, the that will set the position, or new position of the decimal point

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Clifford Nelson Consulting
United States United States
Has been working as a C# developer on contract for the last several years, including 3 years at Microsoft. Previously worked with Visual Basic and Microsoft Access VBA, and have developed code for Word, Excel and Outlook. Started working with WPF in 2007 when part of the Microsoft WPF team. For the last eight years has been working primarily as a senior WPF/C# and Silverlight/C# developer. Currently working as WPF developer with BioNano Genomics in San Diego, CA redesigning their UI for their camera system. he can be reached at qck1@hotmail.com.

Comments and Discussions