private void onTabOpenExternalLink(object sender, OpenLinkEventArgs e) { TabView tab = createTab(); tab.loadUrl(e.url); tabControl.SelectedItem = tab.getTab(); }
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; }
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); }