Compartilhar via


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 (_iWebView2.CoreWebView2.IsDefaultDownloadDialogOpen)
{
    _iWebView2.CoreWebView2.CloseDefaultDownloadDialog();
}
else
{
    _iWebView2.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