Autosizing a grid column to take up remaining space in parent

后端 未结 2 1120
心在旅途
心在旅途 2020-12-20 13:46

In WPF, I am having a heck of a time trying to get a grid to size properly.

I have the following layout for my grid:



        
2条回答
  •  情书的邮戳
    2020-12-20 14:00

    Seems I found a solution after a bit more tinkering around.

    The problem was:

    This was causing the column to fit to the content. I changed it to:

    This causes the column to fit to the empty space left in the parent container, regardless of content size.

提交回复
热议问题