UIElement.PreviewGiveFeedback 事件

定义

在开始拖放操作时发生。Occurs when a drag-and-drop operation is started.

public:
 event System::Windows::GiveFeedbackEventHandler ^ PreviewGiveFeedback;
public event System.Windows.GiveFeedbackEventHandler PreviewGiveFeedback;
member this.PreviewGiveFeedback : System.Windows.GiveFeedbackEventHandler 
Public Custom Event PreviewGiveFeedback As GiveFeedbackEventHandler 

注解

使用 PreviewGiveFeedback 事件,拖动事件源可以修改鼠标指针的外观,以便在拖放操作过程中为用户提供视觉反馈。The PreviewGiveFeedback event enables the source of a drag event to modify the appearance of the mouse pointer, in order to give the user visual feedback during a drag-and-drop operation.

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

路由事件信息Routed Event Information

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

适用于