ContentElement.Drop 事件

定義

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

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

事件類型

DragEventHandler

備註

這個事件 DragDrop.Drop 會為這個類別建立附加事件的別名,因此 ContentElement.DropContentElement 繼承為基底專案時,就是類別成員清單的一部分。This event creates an alias for the DragDrop.Drop attached event for this class so that ContentElement.Drop is part of the class members list when ContentElement is inherited as a base element. 附加至事件的事件處理常式 Drop 會附加至基礎 DragDrop.Drop 附加事件,並接收相同的事件資料實例。Event handlers that are attached to the Drop event are attached to the underlying DragDrop.Drop attached event and receive the same event data instance.

路由事件資訊Routed Event Information

識別碼欄位Identifier field DropEvent
路由策略Routing strategy 路由Bubbling
代理人Delegate DragEventHandler
  • 對應的通道事件為 PreviewDropThe corresponding tunneling event is PreviewDrop.

  • 覆寫 OnDrop 以在衍生類別中為這個事件執行類別處理。Override OnDrop to implement class handling for this event in derived classes.

適用於

另請參閱