mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Should never rely on webBrowser; it's the backing field for the WebBrowser property (which should be used instead of going straight to the backing field...).
This commit is contained in:
@@ -125,7 +125,7 @@ namespace CefSharp.Wpf.Example.Views.Main
|
||||
// TODO: This is a bit of a hack. It would be nicer/cleaner to give the webBrowser focus in the Go()
|
||||
// TODO: method, but it seems like "something" gets messed up (= doesn't work correctly) if we give it
|
||||
// TODO: focus "too early" in the loading process...
|
||||
WebBrowser.LoadCompleted += delegate { Application.Current.Dispatcher.BeginInvoke((Action)(() => webBrowser.Focus())); };
|
||||
WebBrowser.LoadCompleted += delegate { Application.Current.Dispatcher.BeginInvoke((Action)(() => WebBrowser.Focus())); };
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user