DragDrop.AddPreviewGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler) DragDrop.AddPreviewGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler) DragDrop.AddPreviewGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler) DragDrop.AddPreviewGiveFeedbackHandler(DependencyObject, GiveFeedbackEventHandler) Method

Definición

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

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

Parámetros

element
DependencyObject DependencyObject DependencyObject 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
GiveFeedbackEventHandler GiveFeedbackEventHandler GiveFeedbackEventHandler GiveFeedbackEventHandler

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 PreviewGiveFeedback evento tiene lugar durante una operación de arrastre.The PreviewGiveFeedback event occurs during a drag operation.

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

Se aplica a

Consulte también: