- Online Barcode Generator
- How To
- Buy Now
KetticTreeView Drag and Drop Support in C#.NET
KetticTreeView provides drag and drop support to expand the Windows application capabilities. With this drag and drop support, the developers can easily drag and drop nodes within the TreeView control, between Kettic WinForms UI controls, locate the node place, drag and drop nodes in other elements, scroll up and down a dragging node automatically, expand a dragging node automatically, and fine-tune specific nodes when dragging and dropping. In the C# tutorial below, we shall show how to customize the drag and drop of TreeView behavior and how to customize the control to copy the nodes as is dropped.
C# Create Custom Drag and Drop behavior for KetticTreeView
C# Create Element for Applying Drag and Drop to KetticTreeView
When creating the custom drag and drop behavior, we can apply it to the KetticTreeView through the CreateDragDropService method of KetticTreeViewElement. The following C# code shows how to create a new element to achieve this.
Apply Custom Drag and Drop to KetticTreeView in C#.NET
After creating the element, we can apply the CustomTreeViewElement in the tree view. This is achieved via passing a new instance of the element in the CreateTreeViewElement of KetticTreeView decendant C# class. The C# code below shows how to do this
And then, we can populate the tree view and check the drag and drop functionality of KetticTreeView control. The following C# code demonstrates how to achieve this.
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls