private void canvasWindowButton_Click(object sender, RoutedEventArgs e) { CanvasWindow window = new CanvasWindow(); window.ShowDialog(); }