private void onTabOpenExternalLink(object sender, OpenLinkEventArgs e) { TabView tab = createTab(); tab.loadUrl(e.url); tabControl.SelectedItem = tab.getTab(); }
private void btnGo_Click(object sender, RoutedEventArgs e) { btnGo.IsDefault = false; TabView selectedTab = getSelectedTab(); if (selectedTab != null) { if (txtAddress.Text.StartsWith("http://") == true) { selectedTab.loadUrl(txtAddress.Text); } else if (txtAddress.Text != "") { selectedTab.loadUrl("http://" + txtAddress.Text); } } }
private void browserWindow_Loaded(object sender, RoutedEventArgs e) { TabView tab = createTab(); tab.loadUrl("http://www.google.com"); }