Skip to main content

DragDropHintData.Effects Property

Gets or sets the target drag-and-drop operation.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public DragDropEffects Effects { get; set; }

Property Value

Type Description
DragDropEffects

A member of the DragDropEffects enumeration specifying the target drag-and-drop operation.

Remarks

You can use DragDropEffects to display different mouse pointers for drag-and-drop operations.

The code sample below shows how to display an arrow symbol for moving nodes to another node’s child collection:

<dxg:GridControl>
   <!----> 
   <dxg:GridControl.View>
      <dxg:TreeListView AllowDragDrop="True" DragRecordOver="OnDragRecordOver" />
   </dxg:GridControl.View>
</dxg:GridControl>
void OnDragRecordOver(object sender, DragRecordOverEventArgs e) {
   if (e.DropPosition == DropPosition.Inside) {
      e.Effects = DragDropEffects.Link;
      e.Handled = true;
   }
}
See Also