PreviewQueryContinueDrag Event
TOC
Collapse the table of content
Expand the table of content

UIElement::PreviewQueryContinueDrag Event

 

Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public:
event QueryContinueDragEventHandler^ PreviewQueryContinueDrag {
	void add(QueryContinueDragEventHandler^ value);
	void remove(QueryContinueDragEventHandler^ value);
}

The PreviewQueryContinueDrag event enables the drag source to declare whether the drag-and-drop operation should be canceled.

This event creates an alias for the DragDrop::PreviewQueryContinueDrag attached event for this class, so that PreviewQueryContinueDrag is part of the class members list when UIElement is inherited as a base element. Event handlers that are attached to the PreviewQueryContinueDrag event are attached to the underlying DragDrop::PreviewQueryContinueDrag attached event and receive the same event data instance.

Identifier field

PreviewQueryContinueDragEvent

Routing strategy

Tunneling

Delegate

QueryContinueDragEventHandler

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft