private void txtUrl_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         WBBrowser.Navigate(txtUrl.Text);
     }
 }
 private void GoToPage_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     WBBrowser.Navigate(txtUrl.Text);
 }
 private void BrowseForward_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     WBBrowser.GoForward();
 }
 private void BrowseBack_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     WBBrowser.GoBack();
 }
 public BrowserTesting()
 {
     InitializeComponent();
     txtUrl.IsReadOnly = true;
     WBBrowser.Navigate("https://www.youtube.com/");
 }