MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Closing issue on WebView2 control in WPF app

Open
#1,690 3 comments 0 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Aug 27, 2021.

feature request tracked
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

AB#25547807

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.