Example #1
0
 private void ButtonScreenshot_OnClick(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.SaveFileDialog Dialog = new System.Windows.Forms.SaveFileDialog
     {
         Filter = "PNG|*.png|MRC|*.mrc"
     };
     System.Windows.Forms.DialogResult Result = Dialog.ShowDialog();
     if (Result == System.Windows.Forms.DialogResult.OK)
     {
         Viewport.GrabScreenshot(Dialog.FileName);
     }
 }