WPF - How to style the menu control to remove the left margin?

后端 未结 9 1628
余生分开走
余生分开走 2021-02-04 08:41

I have added a default menu control to my user control. I need to style the menu to remove the left margin containing the space for the icon or checkbox. How can I do this?

9条回答
  •  轮回少年
    2021-02-04 09:24

    My simple way is to use a negative margin for the Grid in the ItemTemplate

    
        
            
                
                    
                    
                
                
                
            
        
    
    

    see full answer here

提交回复
热议问题