Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Comments
Subramanyam Shankar 7-Mar-15 1:20am    
Can you provide more details?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900