Share via


DragOperation.SetDragUIContentFromSoftwareBitmap Method

Definition

Overloads

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap)

Specifies that the specified bitmap image should be used as a custom drag visual during the drag and drop operation.

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap, Point)

Specifies that the specified bitmap image should be used as a custom drag visual (displayed at the specified offset from the input pointer) during the drag and drop operation.

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap)

Specifies that the specified bitmap image should be used as a custom drag visual during the drag and drop operation.

public:
 virtual void SetDragUIContentFromSoftwareBitmap(SoftwareBitmap ^ bitmap) = SetDragUIContentFromSoftwareBitmap;
/// [Windows.Foundation.Metadata.Overload("SetDragUIContentFromSoftwareBitmap")]
void SetDragUIContentFromSoftwareBitmap(SoftwareBitmap const& bitmap);
[Windows.Foundation.Metadata.Overload("SetDragUIContentFromSoftwareBitmap")]
public void SetDragUIContentFromSoftwareBitmap(SoftwareBitmap bitmap);
function setDragUIContentFromSoftwareBitmap(bitmap)
Public Sub SetDragUIContentFromSoftwareBitmap (bitmap As SoftwareBitmap)

Parameters

bitmap
SoftwareBitmap

The bitmap image to use for the custom drag visual during the drag and drop operation.

Attributes

Applies to

SetDragUIContentFromSoftwareBitmap(SoftwareBitmap, Point)

Specifies that the specified bitmap image should be used as a custom drag visual (displayed at the specified offset from the input pointer) during the drag and drop operation.

public:
 virtual void SetDragUIContentFromSoftwareBitmap(SoftwareBitmap ^ bitmap, Point anchorPoint) = SetDragUIContentFromSoftwareBitmap;
/// [Windows.Foundation.Metadata.Overload("SetDragUIContentFromSoftwareBitmap2")]
void SetDragUIContentFromSoftwareBitmap(SoftwareBitmap const& bitmap, Point const& anchorPoint);
[Windows.Foundation.Metadata.Overload("SetDragUIContentFromSoftwareBitmap2")]
public void SetDragUIContentFromSoftwareBitmap(SoftwareBitmap bitmap, Point anchorPoint);
function setDragUIContentFromSoftwareBitmap(bitmap, anchorPoint)
Public Sub SetDragUIContentFromSoftwareBitmap (bitmap As SoftwareBitmap, anchorPoint As Point)

Parameters

bitmap
SoftwareBitmap

The bitmap image to use for the custom drag visual during the drag and drop operation.

anchorPoint
Point

The relative position of the drag visual from the input pointer. The anchor point cannot be outside of the content. For example, if the anchor point is (50, 50) and the position of the pointer is (x, y), the top left corner for the visual will be (x - 50, y - 50).

Attributes

Applies to