Adding content to a TreeViewItem programmatically

后端 未结 1 389
感动是毒
感动是毒 2021-01-13 14:34

I\'m trying to create a new TreeViewItem with a control in it like:


   
       
                    


        
相关标签:
1条回答
  • 2021-01-13 15:34
    new TreeViewItem {
        Header = new StackPanel {
            Children = {
                new Button { ... }
            }
        }
    }
    
    0 讨论(0)
提交回复
热议问题