static void MakeScreenShot(Grid Me, string savePath) { //var Me = gridTest; var bitmap = new Bitmap((int)Me.ActualWidth, (int)Me.ActualHeight); var screenshot = Graphics.FromImage(bitmap); var pointToScreen = Me.PointToScreen(new Point(0, 0)); screenshot.CopyFromScreen( (int)pointToScreen.X, (int)pointToScreen.Y, 0, 0, new Size((int)Me.ActualWidth, (int)Me.ActualHeight)); SaveBitmap(savePath, bitmap); }