How do I make an ItemsControl stretch to fill all availible space?

后端 未结 4 364
青春惊慌失措
青春惊慌失措 2021-01-19 17:02

I have an ItemsControl, with its ItemsSource bound to a list of items. The size of each of the items is as small as they can be, what I need is for the control and the items

4条回答
  •  攒了一身酷
    2021-01-19 17:32

    The Grid as Template won't work since items are put over under. Using a DockPanel works fine:

      
      
           
                
           
      
    

提交回复
热议问题