public static WebView add_Chrome_Wpf(this System.Windows.Forms.Control control, bool addNavigationBar = false) { var autoResetEvent = new AutoResetEvent(false); var _webView = (WebView)control.invokeOnThread( () => { var webView = control.add_WPF_Control <WebView>(); webView.PropertyChanged += (browserCore, eventArgs) => { if (eventArgs.PropertyName == "IsBrowserInitialized") { autoResetEvent.Set(); } }; return(webView); }); autoResetEvent.WaitOne(2000); if (addNavigationBar) { control.insert_Above(20) .add_TextBox("Url:", "") .onEnter((text) => _webView.open_ASync(text.info())); //webView.onNavigate((url)=> urlTextBox.set_Text(url)); } return(_webView); }