C#.NET in WPF: How to add a control in a Panel in WPF?
I have a dialog with a panel that I want my user controls to be displayed. How can I add my user control in the panel in WPF?
users = new
AdminUsers();
stackPanel1.Children.Add(users);
The AdminUsers is a usercontrol that I created. Then I drag and drop a panel into my form. To add my user control to the panel I use the property Children from panel to add your user control.
That's it!
Comments
Post a Comment