UIElement.DragLeave Event


在输入系统报告出现以此元素为拖动起点的基础拖动事件时发生。Occurs when the input system reports an underlying drag event with this element as the drag origin.

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


此事件将为此类创建 DragDrop.DragLeave 附加事件的别名,以便在将 UIElement 作为基元素继承时,UIElement.DragLeave 是类成员列表的一部分。This event creates an alias for the DragDrop.DragLeave attached event for this class so that UIElement.DragLeave is part of the class members list when UIElement is inherited as a base element. 附加到 DragLeave 事件的事件处理程序附加到基础 DragDrop.DragLeave 附加事件,并接收相同的事件数据实例。Event handlers that are attached to the DragLeave event are attached to the underlying DragDrop.DragLeave attached event and receive the same event data instance.

路由事件信息Routed Event Information

标识符字段Identifier field DragLeaveEvent
路由策略Routing strategy 冒泡Bubbling
委托Delegate DragEventHandler

Applies to

See also