How can a WPF StackPanel fill vertically from bottom to top?

后端 未结 7 1645
灰色年华
灰色年华 2020-12-16 09:21

I need to be able to fill a stackpanel with buttons but the buttons must appear at the bottom of the stackpanel first and populate upwards<

7条回答
  •  无人及你
    2020-12-16 09:53

    Try putting the StackPanel inside another container (not a StackPanel; maybe a DockPanel) and bottom-aligning it. Then when you populate the buttons, put each new one into the first position.

提交回复
热议问题