CoreDragOperation.SetDragVisualContentFromSoftwareBitmap(SoftwareBitmap, Point) method

[This documentation is preliminary and is subject to change.]

Sets the drag UI to a custom visual in the form of a software bitmap.

Syntax

public void SetDragVisualContentFromSoftwareBitmap(
  SoftwareBitmap softwareBitmap, 
  Point anchorPoint
)
Public Sub SetDragVisualContentFromSoftwareBitmap(
  softwareBitmap As SoftwareBitmap,  
  anchorPoint As Point 
)
public:
void SetDragVisualContentFromSoftwareBitmap(
  SoftwareBitmap^ softwareBitmap, 
  Point anchorPoint
)

Parameters

  • softwareBitmap
    Type: SoftwareBitmap

    The custom visual to show.

  • anchorPoint
    Type: Point

    The relative position of the visual from the pointer. This point cannot be outside of the content.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.DataTransfer.DragDrop.Core Windows::ApplicationModel::DataTransfer::DragDrop::Core [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

See also

CoreDragOperation

SetDragVisualContentFromSoftwareBitmap(SoftwareBitmap)