Create a vertical Menu in a Wpf

前端 未结 3 774
醉话见心
醉话见心 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条回答
  •  梦毁少年i
    2021-02-07 06:16

    You can adjust the ItemsPanel using Style (which I feel is much more wpf-ish)

    
            
    
    

    the VerticalAlignment="Center" is there for beautification purposes, you can definitely skip it.

    then in the menu code

    
        ...
    
    

提交回复
热议问题