listbox items orientation to horizontal

前端 未结 1 1027
庸人自扰
庸人自扰 2021-01-04 03:34

How to make the listbox items orientation to horizontal in the default styling of a listbox. What i mean by default is the style which we get using blend.

1条回答
  •  执笔经年
    2021-01-04 04:20

    Use the ItemsPanel property to replace the panel with a horizontal StackPanel:

    
        
            
                
            
        
    
    

    If you want to do this in a Style, just add a Setter that sets the ItemsPanel property:

    
    

    0 讨论(0)
提交回复
热议问题