DragDrop.RemovePreviewDragOverHandler(DependencyObject, DragEventHandler) 方法

定義

從所指定相依性物件中移除 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

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

handler
DragEventHandler

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

備註

將 n 物件拖曳到元素的範圍上方時,就會發生 PreviewDragOver 事件。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. 若要移除此事件之反升版本的處理常式,請參閱 RemoveDragOverHandlerTo remove a handler for the bubbling version of this event, see RemoveDragOverHandler.

適用於

另請參閱