コード例 #1
0
 private void UnWrapBrowserEvents(ExtendedWebBrowser browser)
 {
     browser.DocumentTitleChanged -= browser_DocumentTitleChanged;
     browser.StartNewWindow       -= browser_StartNewWindow;
     browser.StartNewTab          -= browser_StartNewTab;
     browser.Quit -= browser_Quit;
 }
コード例 #2
0
 private void ActiveBrowserBack()
 {
     if (HasActiveBrowser())
     {
         ExtendedWebBrowser b = GetActiveBrowser();
         if (b.CanGoBack)
         {
             b.GoBack();
         }
     }
 }
コード例 #3
0
 private void ActiveBrowserForward()
 {
     if (HasActiveBrowser())
     {
         ExtendedWebBrowser b = GetActiveBrowser();
         if (b.CanGoForward)
         {
             b.GoForward();
         }
     }
 }
コード例 #4
0
 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;
 }
コード例 #5
0
        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);
        }
コード例 #6
0
 public WebBrowserExtendedEvents(ExtendedWebBrowser browser)
 {
     _Browser = browser;
 }