CoreWebView2.IsDefaultDownloadDialogOpen Property

Definition

True if the default download dialog is currently open.

public bool IsDefaultDownloadDialogOpen { get; }
member this.IsDefaultDownloadDialogOpen : bool
Public ReadOnly Property IsDefaultDownloadDialogOpen As Boolean

Property Value

Examples

if (webView.CoreWebView2.IsDefaultDownloadDialogOpen)
{
    webView.CoreWebView2.CloseDefaultDownloadDialog();
}
else
{
    webView.CoreWebView2.OpenDefaultDownloadDialog();
}

Remarks

The value of this property changes only when the default download dialog is explicitly opened or closed. Hiding the WebView implicitly hides the dialog, but does not change the value of this property.

Applies to