共用方式為


ICoreDropOperationTarget 介面

定義

包含支援拖放所需的方法。

public interface class ICoreDropOperationTarget
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3641860502, 19547, 16765, 187, 55, 118, 56, 29, 239, 141, 180)]
struct ICoreDropOperationTarget
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3641860502, 19547, 16765, 187, 55, 118, 56, 29, 239, 141, 180)]
public interface ICoreDropOperationTarget
Public Interface ICoreDropOperationTarget
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

方法

DropAsync(CoreDragInfo)

卸載拖曳的專案時呼叫。

EnterAsync(CoreDragInfo, CoreDragUIOverride)

當拖曳的專案進入置放區域時呼叫。

LeaveAsync(CoreDragInfo)

當拖曳的專案離開目標置放區域時呼叫。

OverAsync(CoreDragInfo, CoreDragUIOverride)

當拖曳的專案位於置放區域上方時呼叫。

適用於