- when i press Generic button it shows stack panel with group of buttons
- when i press any of those buttons.it should show a user control in the large space
-
my trouble that when i press any button in stack panel it doesn’t show user control in space

public partial class MainWindow : Window { GenericName use1 = new GenericName(); public MainWindow() { InitializeComponent(); } private void btn_Generic(object sender, RoutedEventArgs e) { stackPanel1.Visibility = Visibility.Visible; } private void btn_GeneralInfo(object sender, RoutedEventArgs e) { Container.Child = use1; } } }
when i press Generic button it shows stack panel with group of buttons when
Share
the five buttons dont have OnClick set as btn_Generic i.e.