How to get TreeViewItem from HierarchicalDataTemplate item?

前端 未结 11 1437
失恋的感觉
失恋的感觉 2020-12-02 11:34

I have a TreeView which uses a HierarchicalDataTemplate to bind its data.

It looks like this:



        
11条回答
  •  醉酒成梦
    2020-12-02 12:06

    Here is solution. rtvEsa is treeview. HierarchicalDataTemplate is treeview template Tag make real consumation of current item. This is not selected item it is current item in tree control that use HierarchicalDataTemplate.

    Items.CurrentItem is part of internal tree colection. You cant get many and diferent data. For example Items.ParenItem too.

      
    
      
    

提交回复
热议问题