Here I asked to create an image of the control about the screenshot of the control, the issue is resolved, but with a browser ( WebBrowser ) it does not roll. Browser Fota need a little different, but not the problem. When I create a browser in code, it does not go to pages.
LoadCompletedEventHandler h = null; h = (o, e) => { WpfControlRenderer.CreateControlScreenshot((FrameworkElement)o, destFileName); _wb.LoadCompleted -= h; }; _wb.LoadCompleted += h; var size = new Size(_wb.Width, _wb.Height); _wb.Measure(size); _wb.Arrange(new Rect(size)); _wb.Navigate(url); The function h does not even enter. At the same time, the browser added to the form perfectly opens everything and fotkat. He lacks something, but I do not know what.
UPD:
The WebBrowser.Navigating and WebBrowser.Navigated events are triggered. But WebBrowser.LoadCompleted for some reason does not occur
WebBrowsercontrol? Or just a screenshot of a specific site? - Vadim Ovchinnikov