Setting font of parent in nodes in WPF Tree View to Bold using code behind

后端 未结 3 819
青春惊慌失措
青春惊慌失措 2021-01-25 19:09

I have made a tree view and added parent and child nodes to it all using code behind, now where I am stuck is to set the font of parent nodes to BOLD while keeping

3条回答
  •  长情又很酷
    2021-01-25 19:42

    Try this

      
                        
                            --------------
                            --------------
                        
                        
                            
                                
                                                       
                        
                    
    

    Copy the default template and add this trigger.I am not sure how to do this in code.You can check this article to get some overview

    http://www.codeproject.com/KB/buttons/ButtonControl.aspx

提交回复
热议问题