ContentElement.PreviewDragOver 事件

定义

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

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

注解

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

路由事件信息Routed Event Information

标识符字段Identifier field PreviewDragOverEvent
路由策略Routing strategy 隧道Tunneling
委托Delegate DragEventHandler

适用于