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.

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


這個事件PreviewDrop會為這個類別建立DragDrop.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
  • 對應的反升事件Drop為。The corresponding bubbling event is Drop.

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