private void BtnCumCount_Click(object sender, RoutedEventArgs e) { var window = new CumulativeWindow(); window.Owner = Application.Current.MainWindow; window.ShowDialog(); }