private void UnWrapBrowserEvents(ExtendedWebBrowser browser) { browser.DocumentTitleChanged -= browser_DocumentTitleChanged; browser.StartNewWindow -= browser_StartNewWindow; browser.StartNewTab -= browser_StartNewTab; browser.Quit -= browser_Quit; }
private void ActiveBrowserBack() { if (HasActiveBrowser()) { ExtendedWebBrowser b = GetActiveBrowser(); if (b.CanGoBack) { b.GoBack(); } } }
private void ActiveBrowserForward() { if (HasActiveBrowser()) { ExtendedWebBrowser b = GetActiveBrowser(); if (b.CanGoForward) { b.GoForward(); } } }
public void AssignTab(TabItem tab, ExtendedWebBrowser browserTab) { TabMain.Items.Add(tab); browserTab.Quit += browserTab_Quit; browserTab.DocumentTitleChanged += browserTab_DocumentTitleChanged; browserTab.WindowSetWidth += browserTab_WindowSetWidth; browserTab.WindowSetHeight += browserTab_WindowSetHeight; browserTab.WindowSetLeft += browserTab_WindowSetLeft; browserTab.WindowsSetTop += browserTab_WindowsSetTop; browserTab.DocumentCompleted += browserTab_DocumentCompleted; }
private TabItem CreateNewBrowserTab() { var t = new TabItem(); tbMain.Items.Add(t); tbMain.SelectedItem = t; t.Header = "Yeni Sayfa"; var host = new WindowsFormsHost(); var b = new ExtendedWebBrowser { Tag = t, ScriptErrorsSuppressed = true }; host.Child = b; t.Content = host; WrapBrowserEvents(b); _browserTabs.Add(t, b); _tabQueue.Add(t); return(t); }
public WebBrowserExtendedEvents(ExtendedWebBrowser browser) { _Browser = browser; }