WPF , Getting verticalstretch working as expected!

前端 未结 3 2350
醉话见心
醉话见心 2021-02-15 23:04

I am trying to make the vertical stretch to work as expected i WPF, but for some reason it only takes the space it needs, and not the space available.

First, I am using

3条回答
  •  囚心锁ツ
    2021-02-15 23:45

    I found a solution. I have to override the ItemsPanel Template to use a grid (or similar container):

    
      
        
          
        
      
    
    

    I have also in this case removed some of the xaml to make it more readble!

    Thanks

提交回复
热议问题