예제 #1
0
        private void onTabOpenExternalLink(object sender, OpenLinkEventArgs e)
        {
            TabView tab = createTab();

            tab.loadUrl(e.url);
            tabControl.SelectedItem = tab.getTab();
        }
예제 #2
0
        private TabView CreateTab()
        {
            TabView tab = new TabView(tabControl);
            tab.OnUpdateTitle += onTabTitleUpdated;
            tab.OnUpdateURL += onTabURLUpdated;
            tab.OnOpenExternalLink += onTabOpenExternalLink;
            tabViewList.Add(tab);
            tabControl.SelectedItem = tab.getTab();

            return tab;
        }
예제 #3
0
        private TabView createTab()
        {
            TabView tab = new TabView(tabControl);

            tab.OnUpdateTitle      += onTabTitleUpdated;
            tab.OnUpdateURL        += onTabURLUpdated;
            tab.OnOpenExternalLink += onTabOpenExternalLink;
            tabViewList.Add(tab);
            tabControl.SelectedItem = tab.getTab();

            return(tab);
        }