UIElement.Drop UIElement.Drop UIElement.Drop UIElement.Drop Event

定义

在输入系统报告出现将此元素作为放置目标的基础放置事件时发生。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 

注解

此事件将为此类创建DragDrop.Drop附加事件的别名, 以便在UIElement.Drop继承为基元素时UIElement , 它是类成员列表的一部分。This event creates an alias for the DragDrop.Drop attached event for this class so that UIElement.Drop is part of the class members list when UIElement 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.

适用于

另请参阅