Tried to make WebViewControlNavigationCompletedEventArgs report a better status, but no real way to be sure of IsSuccess.

This commit is contained in:
Jim Wilcox 2018-09-07 15:54:45 -04:00
Родитель 7ea0730310
Коммит 871208da73
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -66,7 +66,6 @@
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Net" /> <Reference Include="System.Net" />
<Reference Include="System.Net.Http" /> <Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" /> <Reference Include="System.Xaml" />
<Reference Include="WindowsBase" /> <Reference Include="WindowsBase" />
<Reference Include="System.Runtime.WindowsRuntime"> <Reference Include="System.Runtime.WindowsRuntime">

Просмотреть файл

@ -32,12 +32,14 @@ namespace Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT
#if WPF #if WPF
internal WebViewControlNavigationCompletedEventArgs(System.Windows.Navigation.NavigationEventArgs e) internal WebViewControlNavigationCompletedEventArgs(System.Windows.Navigation.NavigationEventArgs e)
{ {
IsSuccess = true; // no ability to detect otherwise
Uri = e.Uri; Uri = e.Uri;
} }
#endif #endif
internal WebViewControlNavigationCompletedEventArgs(WebBrowserNavigatedEventArgs e) internal WebViewControlNavigationCompletedEventArgs(WebBrowserNavigatedEventArgs e)
{ {
IsSuccess = true; // no ability to detect otherwise
Uri = e.Url; Uri = e.Url;
} }