Back to Devexpress

DragDropManager.QueryDragPreviewImage Event

windowsforms-devexpress-dot-utils-dot-dragdrop-dot-dragdropmanager.md

latest3.6 KB
Original Source

DragDropManager.QueryDragPreviewImage Event

Allows you to provide a preview of the dragged data elements.

Namespace : DevExpress.Utils.DragDrop

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DXCategory("DragDrop")]
public event QueryDragPreviewImageEventHandler QueryDragPreviewImage
vb
<DXCategory("DragDrop")>
Public Event QueryDragPreviewImage As QueryDragPreviewImageEventHandler

Event Data

The QueryDragPreviewImage event's data class is QueryDragPreviewImageEventArgs. The following properties provide information specific to this event:

PropertyDescription
ActionGets the drag-and-drop action (Copy, Move, etc.) to perform.
InsertTypeGets or sets whether dragged data elements will be inserted before or after data element under the mouse pointer, or as a child (for tree list only).
KeyStateGets the pressed mouse buttons (left, middle, right) and modifier keys (Shift, Ctrl, Alt).
PreviewImageGets or sets a preview of dragged data elements (rows/nodes/items).
Regions
SourceGets the source control.
TargetGets the target control.

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:

See Also

PreviewShowMode

DragDropManager Class

DragDropManager Members

DevExpress.Utils.DragDrop Namespace