How programmatically create an element based on UserControl and dock it to the DockPanel?
var myControl = new MyUserControl(); DockPanel.SetDock(myControl, Dock.Left); myDockPanel.Children.Add(myControl);
Also see here and here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With