WPF , Getting verticalstretch working as expected!

前端 未结 3 1884
遇见更好的自我
遇见更好的自我 2021-02-15 23:25

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:58

    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

提交回复
热议问题