'Declaration
Public Event PreviewDropFile As GdViewer.PreviewDropFileEventHandler
public event GdViewer.PreviewDropFileEventHandler PreviewDropFile
public event PreviewDropFile: GdViewer.PreviewDropFileEventHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.PreviewDropFileEventHandler* PreviewDropFile
public: event GdViewer.PreviewDropFileEventHandler^ PreviewDropFile
Event Data
The event handler receives an argument of type GdViewer.DropFileEventArgs containing data related to this event. The following GdViewer.DropFileEventArgs properties provide information specific to this event.
Property | Description |
---|---|
File | The array of file paths of the files that are dropped in the control. |
Handled | (Inherited from System.Windows.RoutedEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
Remarks
Please ensure that you have enabled the AllowDropFile property to benefit from using this event.
Example
Please follow the example for the DropFile event to motivate yourself on how to utilize this event in your GdViewer control.
See Also