List Items Vertically on a WrapPanel and take advantage of multiple columns

前端 未结 5 1038
隐瞒了意图╮
隐瞒了意图╮ 2021-01-01 16:21

I need to list items (all of same size) vertically (with a ScrollViewer). I want the items to spread through x columns if the container is large enough to display

5条回答
  •  轮回少年
    2021-01-01 17:10

    Disable the vertical scrollbar. This tells WPF to use the horizontal space.

    Frode, try this (VS2017 .NET 4.7.2):

    
        
            
                

提交回复
热议问题