Skip to main content
A newer version of this page is available. .

DragEventArgsBase.Effects Property

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

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v18.2.dll

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;
   }
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the Effects property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also