In This Topic
GdPicture14.WPF Namespace / GdViewer Class / PreviewDropFile Event

PreviewDropFile Event

In This Topic
This event is raised when a file has been dropped in the current GdViewer control using the drag-and-drop feature. The event is explicitly raised when the AllowDropFile property is set to true.

The event makes use of tunel routing strategy. Please check the corresponded GdViewer.DropFileEventArgs for given parameters.

Syntax
'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.

PropertyDescription
The array of file paths of the files that are dropped in the control.  
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
(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