public void Go(ref WebView web, string value, KeyRoutedEventArgs args) { if (args.Key == Windows.System.VirtualKey.Enter) { try { web.Navigate(new Uri(value)); } catch { } web.Focus(FocusState.Keyboard); } }