DragUI DragUI DragUI DragUI Class

Definition

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

public : sealed class DragUI : IDragUIpublic sealed class DragUI : IDragUIPublic NotInheritable Class DragUI Implements IDragUI// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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

Methods

SetContentFromBitmapImage(BitmapImage) SetContentFromBitmapImage(BitmapImage) SetContentFromBitmapImage(BitmapImage) SetContentFromBitmapImage(BitmapImage)

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

public : void SetContentFromBitmapImage(BitmapImage bitmapImage)public void SetContentFromBitmapImage(BitmapImage bitmapImage)Public Function SetContentFromBitmapImage(bitmapImage As BitmapImage) As void// This API is not available in Javascript.
Parameters
bitmapImage
BitmapImage BitmapImage BitmapImage BitmapImage

The source image used to create the drag visual.

See Also

SetContentFromBitmapImage(BitmapImage, Point) SetContentFromBitmapImage(BitmapImage, Point) SetContentFromBitmapImage(BitmapImage, Point) 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.

public : void SetContentFromBitmapImage(BitmapImage bitmapImage, Point anchorPoint)public void SetContentFromBitmapImage(BitmapImage bitmapImage, Point anchorPoint)Public Function SetContentFromBitmapImage(bitmapImage As BitmapImage, anchorPoint As Point) As void// This API is not available in Javascript.
Parameters
bitmapImage
BitmapImage BitmapImage BitmapImage BitmapImage

The source image used to create the drag visual.

anchorPoint
Point Point Point Point

The relative position of the drag visual from the pointer.

See Also

SetContentFromDataPackage() SetContentFromDataPackage() SetContentFromDataPackage() 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.

public : void SetContentFromDataPackage()public void SetContentFromDataPackage()Public Function SetContentFromDataPackage() As void// This API is not available in Javascript.

SetContentFromSoftwareBitmap(SoftwareBitmap) SetContentFromSoftwareBitmap(SoftwareBitmap) SetContentFromSoftwareBitmap(SoftwareBitmap) SetContentFromSoftwareBitmap(SoftwareBitmap)

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

public : void SetContentFromSoftwareBitmap(SoftwareBitmap softwareBitmap)public void SetContentFromSoftwareBitmap(SoftwareBitmap softwareBitmap)Public Function SetContentFromSoftwareBitmap(softwareBitmap As SoftwareBitmap) As void// This API is not available in Javascript.
Parameters
softwareBitmap
SoftwareBitmap SoftwareBitmap SoftwareBitmap SoftwareBitmap

The source image used to create the drag visual.

See Also

SetContentFromSoftwareBitmap(SoftwareBitmap, Point) SetContentFromSoftwareBitmap(SoftwareBitmap, Point) SetContentFromSoftwareBitmap(SoftwareBitmap, Point) 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.

public : void SetContentFromSoftwareBitmap(SoftwareBitmap softwareBitmap, Point anchorPoint)public void SetContentFromSoftwareBitmap(SoftwareBitmap softwareBitmap, Point anchorPoint)Public Function SetContentFromSoftwareBitmap(softwareBitmap As SoftwareBitmap, anchorPoint As Point) As void// This API is not available in Javascript.
Parameters
softwareBitmap
SoftwareBitmap SoftwareBitmap SoftwareBitmap SoftwareBitmap

The source image used to create the drag visual.

anchorPoint
Point Point Point Point

The relative position of the drag visual from the pointer.

See Also

See Also