CoreDragVisualOverride.SetContentFromSoftwareBitmap(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 SetContentFromSoftwareBitmap(
SoftwareBitmap softwareBitmap,
Point anchorPoint
)
Public Sub SetContentFromSoftwareBitmap(
softwareBitmap As SoftwareBitmap,
anchorPoint As Point
)
public:
void SetContentFromSoftwareBitmap(
SoftwareBitmap^ softwareBitmap,
Point anchorPoint
)
Parameters
softwareBitmap
Type: SoftwareBitmapThe custom visual to show.
anchorPoint
Type: PointThe 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 |