Branches need to move the node to a higher level in the parent and lower in the child.
My tree:
<TreeView x:Name="tw_tree" dd:DragDrop.IsDragSource="True" dd:DragDrop.IsDropTarget="True" > <TreeView.ItemTemplate> <HierarchicalDataTemplate ItemsSource="{Binding collection_node, ConverterParameter=name_, Converter={StaticResource MySortConverter}}"> On another example, it works fine, but not in mine.
1 -2 --3 4 -5 --6 I can move any node to the root or to the same node in which it is located. For example, 3 can be moved to the root or to 2, where it already exists.
To others for some reason does not move.
public class Node { public string name_ { get; set; } public ObservableCollection<Node> collection_node { get; set; } public Node() { collection_node = new ObservableCollection<Node>(); } } 