The Webbrowser in WPF can't display page unless mouse moving on.
This bug can't reproduce in my demo project, and I don't know how to fix it. I tried:
- call WindowsFormsHost.UpdateLayout. (Failed)
- call WindowsFormsHost's child, a WebBrowser control. call WebBrowser.Update or WebBrowser.Refresh. (Failed)
- call WindowsFormsHost.InvalidateVisual() (Failed)
Is there other solution?
I even simulated mouse moving on like this:
AutomationElement element = AutomationElement.FromHandle(winAdHoster.Handle);
ATGTestInput.Input.MoveToAndClick(element);
this failed again.