May 2nd, 2009, 06:43 AM
Adding a NumericUpDown instance to a Canvas instance
I need to create a dynamic dialog box using System.Windows.Window class where the controls being displayed inside this dialog will change at runtime. Therefore I am using a System.Windows.Controls.Canvas instance and then adding controls to the Children property of the Canvas instance.
However I need a System.Windows.Forms.NumericUpDown instance in the dialog box but I cant add it to the Children property of the Canvas instance as the System.Windows.Forms.NumericUpDown class is not inherited from the System.Windows.UIElement class.
Does anybody have any idea how the System.Windows.Forms.NumericUpDown instance can be added to the Children property of the System.Windows.Controls.Canvas class?
Or is there a class, that is similar to the System.Windows.Forms.NumericUpDown class, which is inherited from the System.Windows.UIElement class?
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!