Open Guitarnivore opened 1 year ago
Hi @Guitarnivore. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
Forgot to attach the zip, sorry!
Verified this issue with Visual Studio Enterprise 17.7.0 Preview 3.0(net8). Can repro on Windows platform with sample project. WebViewBinding.zip
Fir the first part, I do not believe the Source
is supposed to change. The properties in the core library are read only so it is more a set and load vs a property to observe.
For the inconsistent events, this is an issue. I see in .NET 8 iOS now fires both events. Android still just fires Navigated. I need to test Windows again.
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Description
Navigation is a bit inconsistent when using the WebView control.
Version with bug 7.0 (current)
Last working version Unknown
Reproduction
OR
See attached reproduction ZIP. WebViewBinding.zip
Workaround?
You can update WebViewSource in the Navigating and/or Navigated event if the args URL does not match the WebViewSource URL, however as mentioned prior this does not always fire so is not a complete workaround.
Another workaround is not binding the WebView Source at all, and relying solely on the Navigating and Navigated methods.