DragEventArgsBase.Effects Property
Gets or sets the target drag-and-drop operation.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public DragDropEffects Effects { get; set; }
#Property Value
Type | Description |
---|---|
Drag |
A member of the Drag |
#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;
}
}
#Related GitHub Examples
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.