Tried to make WebViewControlNavigationCompletedEventArgs report a better status, but no real way to be sure of IsSuccess.
This commit is contained in:
Родитель
7ea0730310
Коммит
871208da73
|
@ -66,7 +66,6 @@
|
|||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xaml" />
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="System.Runtime.WindowsRuntime">
|
||||
|
|
|
@ -32,12 +32,14 @@ namespace Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT
|
|||
#if WPF
|
||||
internal WebViewControlNavigationCompletedEventArgs(System.Windows.Navigation.NavigationEventArgs e)
|
||||
{
|
||||
IsSuccess = true; // no ability to detect otherwise
|
||||
Uri = e.Uri;
|
||||
}
|
||||
#endif
|
||||
|
||||
internal WebViewControlNavigationCompletedEventArgs(WebBrowserNavigatedEventArgs e)
|
||||
{
|
||||
IsSuccess = true; // no ability to detect otherwise
|
||||
Uri = e.Url;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче