Skip to content

Commit 94c35f0

Browse files
ES-975464 - Committed the changes
1 parent 61d0445 commit 94c35f0

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

DragAndDrop.png

256 KB
Loading

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# How to drag and drop between two WinUI TreeView
1+
# How to Drag and Drop Between Two WinUI TreeView?
22

33
This example describes how to drag and drop between two [WinUI TreeView](https://www.syncfusion.com/winui-controls/treeview) (SfTreeView).
44

55
You can customize the dragging operation between two treeview by using the [SfTreeView.ItemDragStarting](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.TreeView.SfTreeView.html#Syncfusion_UI_Xaml_TreeView_SfTreeView_ItemDragStarting), [SfTreeView.ItemDropping](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.TreeView.SfTreeView.html#Syncfusion_UI_Xaml_TreeView_SfTreeView_ItemDropping) and [SfTreeView.ItemDropped](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.TreeView.SfTreeView.html#Syncfusion_UI_Xaml_TreeView_SfTreeView_ItemDropped) events.
66

7-
``` csharp
7+
``` c#
88
AssociatedObject.sfTreeView1.ItemDragStarting += SfTreeView1_ItemDragStarting;
99
AssociatedObject.sfTreeView1.ItemDropping += SfTreeView1_ItemDropping;
1010
AssociatedObject.sfTreeView2.ItemDropping += SfTreeView2_ItemDropping;
@@ -77,4 +77,6 @@ private void SfTreeView1_ItemDropped(object sender, Syncfusion.UI.Xaml.TreeView.
7777
}
7878
}
7979
}
80-
```
80+
```
81+
82+
![Drag and drop item between two TreeView](DragAndDrop.png)

0 commit comments

Comments
 (0)