Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebView2 file download notification box

Tags:

webview2

I have what seems like a stupid problem. I have been working on a WebView2 app for a couple of days now. Prior to today, when I would download a file within the app, I would get the usual download notification box in the lower left. Now I'm getting this popup window on the upper right. I don't know what has changed. I've gone back to old code in which I didn't see this behavior and it does it there also. I need to move it back to the lower left. Does anyone know what I have done or how to change this back? Thanks for any help. Kevin.

enter image description here

like image 379
KevinV Avatar asked Aug 06 '26 00:08

KevinV


1 Answers

I suggest you take full control of the dialog (I don't think you can easily just move it).

You do that by subscribing to the CoreWebView2.DownloadStarting event: CoreWebView2.DownloadStarting.

The CoreWebView2DownloadStartingEventArgs has a property DownloadOperation (see CoreWebView2DownloadOperation giving you access to the progress.

Here you can totally define, what should happen, in your case showing a progress dialog.

To see an example of this, you can check my answer HERE

like image 127
Poul Bak Avatar answered Aug 08 '26 10:08

Poul Bak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!