CoreWebView2.IsDefaultDownloadDialogOpen Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.