How to get StackPanel's children to fill maximum space downward?

后端 未结 4 1753
天涯浪人
天涯浪人 2020-11-28 00:41

I simply want flowing text on the left, and a help box on the right.

The help box should extend all the way to the bottom.

If you take out the outer St

4条回答
  •  佛祖请我去吃肉
    2020-11-28 01:14

    You can use SpicyTaco.AutoGrid - a modified version of StackPanel:

    
       

    First button will be fill.

    You can install it via NuGet:

    Install-Package SpicyTaco.AutoGrid
    

    I recommend taking a look at SpicyTaco.AutoGrid. It's very useful for forms in WPF instead of DockPanel, StackPanel and Grid and solve problem with stretching very easy and gracefully. Just look at readme on GitHub.

    
        
    

提交回复
热议问题