public override void CleanUp() { _webView2.NavigationStarting -= WebView2NavigationStarting; _webView2.DocumentStateChanged -= WebView2DocumentStateChanged; _webView2.NavigationCompleted -= WebView2NavigationCompleted; _webView2.MoveFocusRequested -= WebView2MoveFocusRequested; _webView2.AcceleratorKeyPressed -= WebView2AcceleratorKeyPressed; _webView2 = null; _toolbar = null; _parent = null; }
public ControlComponent(MainWindow parent, NavigationToolBar toolbar, WebView2Control webView2) { _parent = parent; _toolbar = toolbar; _webView2 = webView2; _webView2.NavigationStarting += WebView2NavigationStarting; _webView2.DocumentStateChanged += WebView2DocumentStateChanged; _webView2.NavigationCompleted += WebView2NavigationCompleted; _webView2.MoveFocusRequested += WebView2MoveFocusRequested; _webView2.AcceleratorKeyPressed += WebView2AcceleratorKeyPressed; }
public void CleanUp() { _webView2.NavigationStarting -= WebView2NavigationStarting; _webView2.NavigationCompleted -= WebView2NavigationCompleted; _webView2.SourceChanged -= WebView2SourceChanged; _webView2.HistoryChanged -= WebView2HistoryChanged; _webView2.MoveFocusRequested -= WebView2MoveFocusRequested; _webView2.AcceleratorKeyPressed -= WebView2AcceleratorKeyPressed; _webView2 = null; _toolbar = null; _parent = null; }
public ControlComponent(MainForm parent, NavigationToolBar toolbar, WebView2Control webView2) { _parent = parent; _toolbar = toolbar; _webView2 = webView2; _webView2.NavigationStarting += WebView2NavigationStarting; _webView2.SourceChanged += WebView2SourceChanged; _webView2.HistoryChanged += WebView2HistoryChanged; _webView2.NavigationCompleted += WebView2NavigationCompleted; _webView2.MoveFocusRequested += WebView2MoveFocusRequested; _webView2.AcceleratorKeyPressed += WebView2AcceleratorKeyPressed; }