good day gentlemen and ladies, this is my first time using wpf to build an application. i created a window(which had a grid) and then i created a usercontrol also and at runtime, i inserted the user control onto the grid in the event of a button using this
private void button1_Click(object sender, RoutedEventArgs e)
{
Selling_Point i = new Selling_Point(); // this window contains a grid called general that i want to insert my user control in
i.Show();
this.Hide();
i.general.Children.Add(new StoreKeeper()); "storekeeper" is the user control i want to insert onto the grid "general"
}
the code above inserted it but at runtime, the buttons, text boxes and combo boxes were not working. Please what do i do?