I want to create simple WPF application with toolbar and one workspace with parameter text boxes. In the main window i have a grid like this:
In the ToolBarGrid i want to put a user control with two buttons ToolBarUC. When you click the button1, in the ParametersGrid appears UC1 and when you click the button2, in the ParametersGrid appears UC2. Now i have created the MainWindow grids and i have the created 3 user controls(ToolBarUC, UC1, UC2). I have created two events in the ToolBarUC.cs for the two buttons btn1_Click and btn2_click and i put the ToolBarUC into the ToolBarGrid.
The question is what code to put in btn1_clik and btn2_click so UC1 and UC2 appears in ParametersGrid