ContentElement.DragEnter 事件

定义

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

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

事件类型

DragEventHandler

注解

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

路由事件信息Routed Event Information

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

适用于

另请参阅