QueryDragPreviewImageEventArgs.PreviewImage Property
Gets or sets a preview of dragged data elements (rows/nodes/items).
Namespace: DevExpress.Utils.DragDrop
Assembly: DevExpress.Utils.v24.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
Image | An Image object that specifies a preview of dragged data elements. |
Remarks
During a drag-and-drop operation, the Behavior Manager shows a preview of dragged data elements near the mouse pointer. You can use the DragDropManager.PreviewShowMode property to disable the preview image or enable it for target controls only.
If this setting is enabled, you can disable a particular control’s preview with the DragDropBehavior.Properties.PreviewVisible property.
To customize the preview image, use the following options:
the
PreviewImage
event argument in a DragDropManager.QueryDragPreviewImage event handlerthe PreviewImage event argument in a DragDropEvents.BeginDragDrop event handler