private void Graf1_KeyUp(object sender, KeyEventArgs e) { if (e.Key.Equals(Key.C)) { PlotterConfigurator pc = new PlotterConfigurator(); pc.DataContext = Graf1; pc.ShowDialog(); } }