DragUI 類別

定義

提供在拖放作業開始時所拖曳資料的視覺化表示。

public ref class DragUI sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DragUI final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DragUI final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DragUI
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DragUI
Public NotInheritable Class DragUI
繼承
Object Platform::Object IInspectable DragUI
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

這個類別的實例會傳遞至DragStartingEventArgs.DragUI屬性中UIElement.DragStarting事件的處理常式。

方法

SetContentFromBitmapImage(BitmapImage)

從提供的 BitmapImage 建立視覺化專案,以代表拖放作業中的拖曳資料。

SetContentFromBitmapImage(BitmapImage, Point)

從提供的 BitmapImage 建立視覺化專案,以代表拖放作業中的拖曳資料,並從指標設定視覺效果的相對位置。

SetContentFromDataPackage()

建立系統提供的視覺化專案,代表拖放作業中拖曳資料的格式,通常是檔案格式之預設處理常式的圖示。

SetContentFromSoftwareBitmap(SoftwareBitmap)

從提供的 SoftwareBitmap 建立視覺化專案,以代表拖放作業中的拖曳資料。

SetContentFromSoftwareBitmap(SoftwareBitmap, Point)

從提供的 SoftwareBitmap 建立視覺化專案,以代表拖放作業中的拖曳資料,並從指標設定視覺效果的相對位置。

適用於

另請參閱