I want to have the treeview showing only Parent nodes and able to re-order them using the drag n drop functionality. If i set the DragDropEffect to move, that works, but when i drop the node over another, the node is lost because it is moved as a child node. How can i avoid that? Is it possible not to do that?
My code:
<syncfusion:TreeViewAdv
x:Name="TreeView"
ItemsSource="{Binding AvailableItems}"
HorizontalAlignment="Left" VerticalAlignment="Top"
AllowDragDrop="True"
AllowMultiSelect="False"
AllowsColumnReorder="False"
AnimationSpeed="2" AnimationType="Fade"
DragDropEffect="Move"
IsSelectOnRightMouseClick="False"
ShowRootLines="False" Sorting="None">
<syncfusion:TreeViewAdv.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox
x:Name="CheckBox"
IsChecked="{Binding IsOpen}"
Margin="5"/>
<TextBlock
Text="{Binding Label}"
Margin="5"/>
</StackPanel>
</DataTemplate>
</syncfusion:TreeViewAdv.ItemTemplate>
</syncfusion:TreeViewAdv>
Thanks.