Click to See Complete Forum and Search --> : Number updown control in my WPF


Shythal
May 30th, 2009, 06:50 AM
Hi,

I want to use Number updown control in my WPF application. BUt I didn't found any such control in the toolbox control. Please tell me how can i implement this control and its functionality in my application

If any one have idea on this please reply me.


Thanks in advance.

gurge60
June 3rd, 2009, 03:23 PM
NumericUpDown Custom Control in an External Library Sample (http://msdn.microsoft.com/en-us/library/ms771595.aspx)

Some more ideas:
Create a user control that is composed of a TextBox and two buttons. You'll have to do some extra work to get just numeric data from the user. See this (http://stackoverflow.com/questions/5511/numeric-data-entry-in-wpf) StackOverflow thread for some ideas on this.

Also check out the Silverlight Toolkit (http://www.codeplex.com/Silverlight) as it has a NumericUpDown control (use it as an example). You may be able to port over the needed code without too much work.

Or just use a commercial 3rd party solution.