Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ListBoxDragDropManager - How to reorder items

$
0
0

The current ListBoxDragDropManager version does not provide the capability to reorder items. This example demonstrates how to implement this functionality manually.

In this example, we have created a ListBoxDragDropManager class descendant and overridden its OnDragOver and OnDrop methods to add the capability to drop an item before or after another item.

You can use this class like the original ListBoxDragDropManager in the following manner:

[XAML]
<dxe:ListBoxEditx:Name="editor1"DisplayMember="Name"><i:Interaction.Behaviors><local:MyListBoxDragDropManagerx:Name="manager1"/></i:Interaction.Behaviors></dxe:ListBoxEdit>

Viewing all articles
Browse latest Browse all 7205

Trending Articles