UIElement.PreviewDragEnter UIElement.PreviewDragEnter UIElement.PreviewDragEnter UIElement.PreviewDragEnter Event

定义

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

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

注解

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

路由事件信息Routed Event Information

标识符字段Identifier field PreviewDragEnterEvent
路由策略Routing strategy 建立Tunneling
委托Delegate DragEventHandler

适用于