Simple Nested TreeView Xaml structure?

前端 未结 2 1633
野性不改
野性不改 2020-12-07 05:36

I am trying to build a WPF TreeView with three layers. CountryReportTitle is a string property and ArticleCategoryTitlesList is a coll

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 06:06

    You need to bind the TreeView Resources inside your TreeView:

    
        
            
                
            
        
        
            
                
            
        
    
    

    I think you'll need to modify your project to bind your Treeview with your ViewModel instead of a list of string

    Here is a good Example

提交回复
热议问题