DotNetBrowser  1.14
Public Member Functions | List of all members
DotNetBrowser.WPF.WPFDefaultDownloadHandler Class Reference

Represents default implementation of the DownloadHandler that will display file save dialog where user can select the destination file. More...

Inherits DotNetBrowser.DefaultDownloadHandler.

Public Member Functions

 WPFDefaultDownloadHandler (UIElement component)
 Constructs WPFDefaultDialogHandler instance. More...
 
 WPFDefaultDownloadHandler (UIElement component, DownloadMode downloadMode)
 Constructs WPFDefaultDialogHandler instance. More...
 
override bool AllowDownload (DownloadItem downloadItem)
 This method is invoked when Browser is going to download a file. The download parameter contains all information about the the file which is going to be downloaded. More...
 

Additional Inherited Members

- Properties inherited from DotNetBrowser.DefaultDownloadHandler
static DownloadMode DownloadMode [get, set]
 Gets or sets the file download handler mode that will be invoked every time when requests file download. Primary DownloadHandlerMode has More...
 

Detailed Description

Represents default implementation of the DownloadHandler that will display file save dialog where user can select the destination file.

Constructor & Destructor Documentation

DotNetBrowser.WPF.WPFDefaultDownloadHandler.WPFDefaultDownloadHandler ( UIElement  component)

Constructs WPFDefaultDialogHandler instance.

Parameters
componentOwner UI component.
DotNetBrowser.WPF.WPFDefaultDownloadHandler.WPFDefaultDownloadHandler ( UIElement  component,
DownloadMode  downloadMode 
)

Constructs WPFDefaultDialogHandler instance.

Parameters
componentOwner UI component.
downloadModea value indicating what kind of download mode should be used.

Member Function Documentation

override bool DotNetBrowser.WPF.WPFDefaultDownloadHandler.AllowDownload ( DownloadItem  downloadItem)
virtual

This method is invoked when Browser is going to download a file. The download parameter contains all information about the the file which is going to be downloaded.

This method return FALSE if not select file in chooser dialog.

You can set the absolute file path using in chooser dialog.

Parameters
downloadIteminformation about the file that will be downloaded.
Returns
TRUE to allow downloading the file or FALSE to suppress it.

Implements DotNetBrowser.DefaultDownloadHandler.