private void HandleScreenshot(object sender, ExecutedRoutedEventArgs e)
        {
            Visual visual = this.Target as Visual;

            ScreenshotDialog dialog = new ScreenshotDialog();

            dialog.DataContext = visual;
            dialog.ShowDialog();
            e.Handled = true;
        }
Esempio n. 2
0
        void HandleScreenshot(object sender, ExecutedRoutedEventArgs e)
        {
            var visual = Target as Visual;

            var dialog = new ScreenshotDialog();

            dialog.DataContext = visual;
            dialog.ShowDialog();
            e.Handled = true;
        }
Esempio n. 3
0
		private void HandleScreenshot(object sender, ExecutedRoutedEventArgs e)
		{
			Visual visual = this.Target as Visual;

			ScreenshotDialog dialog = new ScreenshotDialog();
			dialog.DataContext = visual;
			dialog.ShowDialog();
			e.Handled = true;
		}