'Declaration
Public Event PreviewDragOver As System.Windows.DragEventHandler
'Usage
Dim instance As Spinner Dim handler As System.Windows.DragEventHandler AddHandler instance.PreviewDragOver, handler
public event System.Windows.DragEventHandler PreviewDragOver
public event PreviewDragOver: System.Windows.DragEventHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event System.Windows.DragEventHandler* PreviewDragOver
public: event System.Windows.DragEventHandler^ PreviewDragOver
The event handler receives an argument of type System.Windows.DragEventArgs containing data related to this event. The following DragEventArgs properties provide information specific to this event.
Property | Description |
---|---|
AllowedEffects | Gets a member of the System.Windows.DragDropEffects enumeration that specifies which operations are allowed by the originator of the drag event. |
Data | Gets a data object that contains the data associated with the corresponding drag event. |
Effects | Gets or sets the target drag-and-drop operation. |
Handled | (Inherited from System.Windows.RoutedEventArgs) |
KeyStates | Gets a flag enumeration indicating the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons. |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2