private void setupChrome(){ Dispatcher.adopt(delegate { if (!WebCore.IsRunning) { WebCore.Initialize(chromeConfig); } if (chromeBrowser != null) { chromeBrowser.Unloaded -= unloadBrowserHandler; chromeBrowser.Crashed -= crashBrowserHandler; chromeBrowser.PluginCrashed -= pluginCrashedHandler; chromeBrowser.Close(); browserContainer.Children.Clear(); } chromeBrowser = new WebControl(); chromeBrowser.Crashed += crashBrowserHandler; chromeBrowser.Unloaded += unloadBrowserHandler; chromeBrowser.PluginCrashed += pluginCrashedHandler; browserContainer.Children.Add(chromeBrowser); }); }
public WebControlLayer( WebControl parent ) { parentControl = parent; }
internal WebControlInvalidLayer( WebControl parent ) : base( parent ) { this.DataContext = parent; }