WPF: Custom +- in TreeView

后端 未结 2 1834
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-28 23:28

It\'s possible to change the built-in collapse-expand icons of TreeView control (+-) to my own icons?

Thanks in advance!

2条回答
  •  借酒劲吻你
    2020-12-29 00:03

    Unfortunately, you will need to retemplate the TreeViewItem to achieve that. This default style may help get you started. Note the paths that will need to be substituted for your images.

    
    
    
    

提交回复
热议问题