Exemple #1
0
        private void ShowScreenshot(Uri uri)
        {
            var bitmapImg        = new BitmapImage(uri);
            var screenshotWindow = new ScreenshotWindow();

            screenshotWindow.ScreenshotImage.Source = bitmapImg;

            screenshotWindow.Show();
            screenshotWindow.WindowState = WindowState.Maximized;
        }
Exemple #2
0
        private void ShowScreenshot(MemoryStream stream)
        {
            var bitmapImg = new BitmapImage();

            var screenshotWindow = new ScreenshotWindow();

            bitmapImg.BeginInit();
            bitmapImg.StreamSource = stream;
            bitmapImg.EndInit();

            screenshotWindow.ScreenshotImage.Source = bitmapImg;

            screenshotWindow.Show();
            screenshotWindow.WindowState = WindowState.Maximized;
        }