ContentElement.PreviewDrop ContentElement.PreviewDrop ContentElement.PreviewDrop ContentElement.PreviewDrop Event

定義

輸入系統報告其下以這個項目作為置放目標的置放事件時發生。Occurs when the input system reports an underlying drop event with this element as the drop target.

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

備註

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

路由事件資訊Routed Event Information

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

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

適用於