How to display context menu for treeview item in a hierarchial data template in wpf

后端 未结 4 1876
情书的邮戳
情书的邮戳 2020-12-16 16:22

How to display context menu for tree view item in wpf using the hierarchical data template? How to display context menu only for CountryTemplate:

  

        
4条回答
  •  春和景丽
    2020-12-16 17:02

    Basically I came up with this

    
                
                    
                        
                            
                            
                            
                            
                            
                                
                            
                        
                    
                    
                    
                    
                
            
    

    And have separate parameters for copy and paste to differentiate copy and paste in a single command.

提交回复
热议问题