UIElement.PreviewDragLeave 事件
定義
輸入系統報告其下以此項目作為拖曳來源的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag origin.
public:
event System::Windows::DragEventHandler ^ PreviewDragLeave;
public event System.Windows.DragEventHandler PreviewDragLeave;
member this.PreviewDragLeave : System.Windows.DragEventHandler
Public Custom Event PreviewDragLeave As DragEventHandler
事件類型
備註
此事件 DragDrop.PreviewDragLeave 會為這個類別建立附加事件的別名,因此 PreviewDragLeave 當 UIElement 繼承為基底專案時,它就是類別成員清單的一部分。This event creates an alias for the DragDrop.PreviewDragLeave attached event for this class, so that PreviewDragLeave is part of the class members list when UIElement is inherited as a base element. 附加至事件的事件處理常式 PreviewDragLeave 會附加至基礎 DragDrop.PreviewDragLeave 附加事件,並接收相同的事件資料實例。Event handlers that are attached to the PreviewDragLeave event are attached to the underlying DragDrop.PreviewDragLeave attached event and receive the same event data instance.
路由事件資訊Routed Event Information
識別碼欄位Identifier field | PreviewDragLeaveEvent |
路由策略Routing strategy | 隧道Tunneling |
代理人Delegate | DragEventHandler |
對應的反升事件為 DragLeave 。The corresponding bubbling event is DragLeave.
OnPreviewDragLeave在衍生類別中覆寫以執行這個事件的類別處理。Override OnPreviewDragLeave to implement class handling for this event in derived classes.