'Declaration
Public Event DataReceived As GdViewer.DataReceivedHandler
public event GdViewer.DataReceivedHandler DataReceived
public event DataReceived: GdViewer.DataReceivedHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.DataReceivedHandler* DataReceived
public: event GdViewer.DataReceivedHandler^ DataReceived
Event Data
The event handler receives an argument of type GdViewer.DataReceivedEventArgs containing data related to this event. The following GdViewer.DataReceivedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Handled | (Inherited from System.Windows.RoutedEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
PercentProgress | The percentage of the already transferred data. |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
SizeLeft | The total size of the data left for transferring, in bytes. |
Source | (Inherited from System.Windows.RoutedEventArgs) |
TotalLength | The total size of the data to transfer, in bytes. |
Remarks
Just to inform you that you can change the packet size used for transferring data by the SetHttpTransferBufferSize method.
Example
How to utilize this event in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated 'and the DataReceived event has been properly added. 'Define the event. Sub GdViewer1_DataReceived(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.DataReceivedEventArgs) 'Do your stuff here. End Sub
//We assume that the GdViewer1 control has been properly integrated //and the DataReceived event has been properly added. //Define the event. void GdViewer1_DataReceived(object sender, GdPicture14.WPF.GdViewer.DataReceivedEventArgs e) { //Do your stuff here. }
See Also