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

后端 未结 7 1640
灰色年华
灰色年华 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 10:03

    Love the transforms solution by Nir. I was wondering if it could be done using transforms.

    One caveat, though: Don't use the transforms trick on a ScrollView based control such as a ListBox because the scroll bar operation will be inverted from the content. Hilarious to watch, as long as you're not the end user. ;>

提交回复
热议问题