DragDrop.AddQueryContinueDragHandler(DependencyObject, QueryContinueDragEventHandler) Método

Definición

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

public:
 static void AddQueryContinueDragHandler(System::Windows::DependencyObject ^ element, System::Windows::QueryContinueDragEventHandler ^ handler);
public static void AddQueryContinueDragHandler (System.Windows.DependencyObject element, System.Windows.QueryContinueDragEventHandler handler);
static member AddQueryContinueDragHandler : System.Windows.DependencyObject * System.Windows.QueryContinueDragEventHandler -> unit
Public Shared Sub AddQueryContinueDragHandler (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 QueryContinueDrag 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 QueryContinueDrag 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 propagación del evento QueryContinueDrag.This method adds a handler for the bubbling version of the QueryContinueDrag event. Para agregar un controlador para la versión de tunelización de este evento, vea AddPreviewQueryContinueDragHandler.To add a handler for the tunneling version of this event, see AddPreviewQueryContinueDragHandler.

Se aplica a

Consulte también: