UIElement.PreviewDragOver UIElement.PreviewDragOver UIElement.PreviewDragOver UIElement.PreviewDragOver Event


在輸入系統回報以此項目作為可能置放目標的基礎拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the potential drop target.

 event System::Windows::DragEventHandler ^ PreviewDragOver;
public event System.Windows.DragEventHandler PreviewDragOver;
member this.PreviewDragOver : System.Windows.DragEventHandler 
Public Custom Event PreviewDragOver As DragEventHandler 


此事件建立的別名DragDrop.PreviewDragOver附加事件,此類別中,以便PreviewDragOver屬於類別的成員清單時UIElement繼承為基底的項目。This event creates an alias for the DragDrop.PreviewDragOver attached event for this class, so that PreviewDragOver is part of the class members list when UIElement is inherited as a base element. 附加至事件處理常式PreviewDragOver事件會附加至基礎DragDrop.PreviewDragOver附加事件,並接收相同的事件資料執行個體。Event handlers that are attached to the PreviewDragOver event are attached to the underlying DragDrop.PreviewDragOver attached event and receive the same event data instance.

路由事件資訊Routed Event Information

識別項欄位Identifier field PreviewDragOverEvent
路由策略Routing strategy 通道Tunneling
Delegate - 委派Delegate DragEventHandler
  • 對應的事件反昇事件是DragOverThe corresponding bubbling event is DragOver.

  • 覆寫OnPreviewDragOver實作在衍生類別中這個事件的類別處理。Override OnPreviewDragOver to implement class handling for this event in derived classes.