DragEventHandler 代理人
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public delegate void DragEventHandler(Platform::Object ^ sender, DragEventArgs ^ e);
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(662371459, 52071, 22216, 182, 1, 27, 156, 15, 28, 61, 50)]
public delegate void DragEventHandler(object sender, DragEventArgs e);
Public Delegate Sub DragEventHandler(sender As Object, e As DragEventArgs)
參數
- sender
-
Object
Platform::Object
附加事件處理常式的物件。
事件資料。
- 屬性
備註
DragEventHandler
是您實作以處理這些事件的委派:
這些事件是路由事件。 從事件處理常式變更DragEventArgs的Handled屬性值,可能會影響路由事件的行為。 如需路由事件概念的詳細資訊,請參閱 事件和路由事件概觀。
Control類別具有控制衍生型別可覆寫的預先有線事件處理常式,以提供拖放事件的類別型處理。 方法如下:
拖放概念的Windows 執行階段實作只允許某些控制項和輸入動作起始拖放動作。 沒有任何一般化 DoDragDrop
方法可允許任何 UI 元素起始拖放動作。 拖放動作的主要來源是當您拖曳清單的專案,例如 GridView時。