DragDrop.AddPreviewQueryContinueDragHandler(DependencyObject, QueryContinueDragEventHandler) Método

Definición

Agrega un controlador de eventos PreviewQueryContinueDrag a un objeto de dependencia especificado.Adds a PreviewQueryContinueDrag event handler to a specified dependency object.

public:
 static void AddPreviewQueryContinueDragHandler(System::Windows::DependencyObject ^ element, System::Windows::QueryContinueDragEventHandler ^ handler);
public static void AddPreviewQueryContinueDragHandler (System.Windows.DependencyObject element, System.Windows.QueryContinueDragEventHandler handler);
static member AddPreviewQueryContinueDragHandler : System.Windows.DependencyObject * System.Windows.QueryContinueDragEventHandler -> unit
Public Shared Sub AddPreviewQueryContinueDragHandler (element As DependencyObject, handler As QueryContinueDragEventHandler)

Parámetros

element
DependencyObject

Objeto de dependencia (UIElement o ContentElement) al que se va a agregar el controlador de eventos.The dependency object (a UIElement or ContentElement) to which to add the event handler.

handler
QueryContinueDragEventHandler

Delegado que hace referencia al método de controlador que se va a agregar.A delegate that references the handler method to be added.

Comentarios

El evento PreviewQueryContinueDrag se produce durante una operación de arrastrar y colocar, y permite al origen de arrastre determinar si se debe cancelar la operación de arrastrar y colocar.The PreviewQueryContinueDrag event occurs during a drag-and-drop operation, and enables the drag source to determine whether the drag-and-drop operation should be canceled.

Este método agrega un controlador para la versión de tunelización del evento PreviewQueryContinueDrag.This method adds a handler for the tunneling version of the PreviewQueryContinueDrag event. Para agregar un controlador para la versión de propagación de este evento, vea AddQueryContinueDragHandler.To add a handler for the bubbling version of this event, see AddQueryContinueDragHandler.

Se aplica a

Consulte también: