UIElement.QueryContinueDrag 事件
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
拖放操作期間,鍵盤或滑鼠按鈕狀態變更時發生。
public:
event System::Windows::QueryContinueDragEventHandler ^ QueryContinueDrag;
C#
public event System.Windows.QueryContinueDragEventHandler QueryContinueDrag;
member this.QueryContinueDrag : System.Windows.QueryContinueDragEventHandler
Public Custom Event QueryContinueDrag As QueryContinueDragEventHandler
事件 QueryContinueDrag 可讓拖曳來源判斷是否應該取消拖放作業。
這個事件會為此 DragDrop.QueryContinueDrag 類別建立附加事件的別名,以便在 QueryContinueDrag 繼承為基底專案時 UIElement ,屬於類別成員清單的一部分。 附加至 QueryContinueDrag 事件的事件處理常式會附加至基礎 DragDrop.QueryContinueDrag 附加事件,並接收相同的事件資料實例。
識別碼欄位 | QueryContinueDragEvent |
路由策略 | 鼓 泡 |
代理人 | QueryContinueDragEventHandler |
對應的通道事件為 PreviewQueryContinueDrag 。
覆寫 OnQueryContinueDrag 以在衍生類別中實作這個事件的類別處理。
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |