Ανάγνωση στα Αγγλικά

Κοινή χρήση μέσω


DragUI Class

Definition

Provides the visual representation of the data being dragged at the start of a drag-and-drop operation.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DragUI
Inheritance
Object DragUI
Attributes

Remarks

An instance of this class is passed to the handler of the UIElement.DragStarting event in the DragStartingEventArgs.DragUI property.

Methods

SetContentFromBitmapImage(BitmapImage, Point)

Creates a visual element from a provided BitmapImage to represent the dragged data in a drag-and-drop operation, and sets the relative position of the visual from the pointer.

SetContentFromBitmapImage(BitmapImage)

Creates a visual element from a provided BitmapImage to represent the dragged data in a drag-and-drop operation.

SetContentFromDataPackage()

Creates a system provided visual element that represents the format of the dragged data in a drag-and-drop operation, typically the icon of the default handler for the file format.

SetContentFromSoftwareBitmap(SoftwareBitmap, Point)

Creates a visual element from a provided SoftwareBitmap to represent the dragged data in a drag-and-drop operation, and sets the relative position of the visual from the pointer.

SetContentFromSoftwareBitmap(SoftwareBitmap)

Creates a visual element from a provided SoftwareBitmap to represent the dragged data in a drag-and-drop operation.

Applies to

Προϊόν Εκδόσεις
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also