private void OpenURLInBrowser(string url) { if (!url.StartsWith("http://") && !url.StartsWith("https://")) { url = "http://" + url; } try { BrwEnjaz.Navigate(new Uri(url)); } catch (UriFormatException) { return; } }
private void Window_Loaded(object sender, RoutedEventArgs e) { BrwEnjaz.Navigate(TxtenjazUrl.Text); }