MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Closing issue on WebView2 control in WPF app
@champnic is already working on this.
Since Aug 27, 2021.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm using WebView2 control (latest stable release 1.0.902.49, Microsoft Edge WebView2 Runtime 92.0.902.78) in WPF app.
Within the WebView2 control I'm launching D365 forms.
The issue happens when the WPF window is closed and the close method logic from Dynamics 365 form should be executed, but it's not because it's not triggered.
Is there any way to trigger WebView2 closing manually from code behind when WPF window is closing?
ps the WebView2.Reload() method triggers the close method in D365, but I'm not willing to wait for the reload and also I cannot use it on the WPF window closing event.
Thanks!
Br,
Dragana
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.