private void OnStackPanel(object sender, RoutedEventArgs e) { var w = new StackPanelWindow(); w.ShowDialog(); }