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

定義

從所指定相依性物件中移除 PreviewDragOver 事件處理常式。Removes a PreviewDragOver event handler from a specified dependency object.

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

參數

element
DependencyObject DependencyObject DependencyObject DependencyObject

要從中移除事件處理常式的相依性物件 (UIElementContentElement)。The dependency object (a UIElement or ContentElement) from which to remove the event handler.

handler
DragEventHandler DragEventHandler DragEventHandler DragEventHandler

參考要移除之處理常式方法的委派。A delegate that references the handler method to be removed.

備註

PreviewDragOver n 物件拖曳到元素的範圍上方時, 就會發生此事件。The PreviewDragOver event occurs when n object is dragged over the element's bounds.

這個方法會移除PreviewDragOver事件通道版本的處理常式。This method removes a handler for the tunneling version of the PreviewDragOver event. 若要移除這個事件之反升版本的處理常式, RemoveDragOverHandler請參閱。To remove a handler for the bubbling version of this event, see RemoveDragOverHandler.

適用於

另請參閱