We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76dc413 commit 6953106Copy full SHA for 6953106
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView_Title.xaml.cs
@@ -15,14 +15,8 @@ public WebView_Title()
15
16
public void OnGoClicked(object sender, RoutedEventArgs e)
17
{
18
- if (Uri.TryCreate(UriInput.Text, UriKind.Absolute, out var uri))
19
- {
20
- Web.Navigate(uri);
21
- }
22
- else
23
24
- throw new ArgumentException("The provided URL is not valid.", nameof(UriInput));
25
+ var uri = new Uri(UriInput.Text, UriKind.Absolute);
+ Web.Navigate(uri);
26
}
27
28
0 commit comments