DragDrop.RemovePreviewDragLeaveHandler(DependencyObject, DragEventHandler) DragDrop.RemovePreviewDragLeaveHandler(DependencyObject, DragEventHandler) DragDrop.RemovePreviewDragLeaveHandler(DependencyObject, DragEventHandler) DragDrop.RemovePreviewDragLeaveHandler(DependencyObject, DragEventHandler) Method

Definizione

Rimuove un gestore dell'evento PreviewDragLeave da un oggetto dipendenza specificato.Removes a PreviewDragLeave event handler from a specified dependency object.

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

Parametri

element
DependencyObject DependencyObject DependencyObject DependencyObject

Oggetto dipendenza (UIElement o ContentElement) da cui rimuovere il gestore eventi.The dependency object (a UIElement or ContentElement) from which to remove the event handler.

handler
DragEventHandler DragEventHandler DragEventHandler DragEventHandler

Delegato che fa riferimento al metodo del gestore da rimuovere.A delegate that references the handler method to be removed.

Commenti

L' PreviewDragLeave evento si verifica quando un oggetto viene trascinato fuori dai limiti dell'elemento.The PreviewDragLeave event occurs when an object is dragged out of the element's bounds.

Questo metodo rimuove un gestore per la versione di tunneling dell' PreviewDragLeave evento.This method removes a handler for the tunneling version of the PreviewDragLeave event. Per rimuovere un gestore per la versione di bubbling di questo evento, vedere RemoveDragLeaveHandler.To remove a handler for the bubbling version of this event, see RemoveDragLeaveHandler.

Si applica a

Vedi anche