Exemplo n.º 1
0
 public void urlTextBox_KeyUp(object sender, KeyRoutedEventArgs e)
 {
     if (e.Key == Windows.System.VirtualKey.Enter &&
         !string.IsNullOrWhiteSpace(urlTextBox.Text))
     {
         UrlEntered?.Invoke(this, new RoutedEventArgs());
     }
 }
Exemplo n.º 2
0
        public BrowserToolbar()
        {
            this.InitializeComponent();

            urlTextBox.Text = InitialUrl;
            UrlSource       = new System.Uri(InitialUrl);
            UrlEntered?.Invoke(this, new RoutedEventArgs());
        }