SHARE
TWEET

Untitled

a guest Jan 12th, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LoadCompletedEventHandler h = null;
  2. h = (o, e) =>
  3. {
  4.     WpfControlRenderer.CreateControlScreenshot((FrameworkElement)o, destFileName);
  5.     _wb.LoadCompleted -= h;
  6. };
  7. _wb.LoadCompleted += h;
  8. var size = new Size(_wb.Width, _wb.Height);
  9. _wb.Measure(size);
  10. _wb.Arrange(new Rect(size));
  11. _wb.Navigate(url);
RAW Paste Data
Top