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