I have a UserControl that I want to add at runtime to my current WPF Page. Is this possible?
Having a Menu-bar and under it i want to have all my information, i.e. that i select Menu -> Show Orders then I want the OrderList-UserControl to be added under the Menu.
Sure I could use a Order WPF Page for that but then I'd have to re-create the menu everywhere? And I don't like the redundancy in that.
I tried something like this which didn't display anything at all, it sure did run the code inside the User Control but nothing is displayed on my window:
wrapPanel1.Children.Add(new OrderControl(100));
Suggestions?