Bind Items to MenuItem -> use Command

后端 未结 2 849
独厮守ぢ
独厮守ぢ 2020-12-18 12:16

I have a MenuItem, which has a collection of items in it. It looks like the File -> Open Menuitem.

So:

  • File
    • Open
      • Open from DataBase <
2条回答
  •  佛祖请我去吃肉
    2020-12-18 12:37

    Try to change its ItemContainerStyle and then bind the command from ItemsSource item,

    
      
    
    
    

    I haven't tried if it works just a guess

    edited answer

                    
                        
                            
                        
                    
    

提交回复
热议问题