Create a vertical Menu in a Wpf

前端 未结 3 773
醉话见心
醉话见心 2021-02-07 05:49

How is it possible to create a vertical menu on the left side of the window in Visual Studio (in a wpf) with xaml like the one in http://www.wpftutorial.net/? I try the code:

3条回答
  •  迷失自我
    2021-02-07 06:00

    Sure, just change MenuItem.ItemsPanel to use a Vertical StackPanel instead of the Default Horizontal one

    
        
            
                
            
        
    
    
    

提交回复
热议问题