Create Radio Button!!
-
I am really new for WPF, I am trying to create Radiobuttons,checkbox and textbox control at run time. Is it possible to create controls at runtime in WPF,if yes then please let me know good link or sample code. Thanks for taking your time! I am using C# and VisualStudio2008.
-
I am really new for WPF, I am trying to create Radiobuttons,checkbox and textbox control at run time. Is it possible to create controls at runtime in WPF,if yes then please let me know good link or sample code. Thanks for taking your time! I am using C# and VisualStudio2008.
Sr...Frank wrote:
Is it possible to create controls at runtime in WPF
Of course. Elements declared in markup (XAML) are created just like any other CLR objects.
Sr...Frank wrote:
,if yes then please let me know good link or sample code
//C#
using System.Windows.Controls;
...
RadioButton radiobutton = new RadioButton();
CheckBox checkbox = new CheckBox();
TextBox textbox = new TextBox();Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Sr...Frank wrote:
Is it possible to create controls at runtime in WPF
Of course. Elements declared in markup (XAML) are created just like any other CLR objects.
Sr...Frank wrote:
,if yes then please let me know good link or sample code
//C#
using System.Windows.Controls;
...
RadioButton radiobutton = new RadioButton();
CheckBox checkbox = new CheckBox();
TextBox textbox = new TextBox();Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Sr...Frank wrote:
How to bound them with windows form in WPF?
I'm not sure what you're asking here... If you're using Windows Forms, why use WPF controls?
Mark Salsbery Microsoft MVP - Visual C++ :java: