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. The buttons are created dynamically and there's an unknown number of them so visual hackery just won't work. I've tried experimenting with vertical alignments but to no avail.
Like so:
<StackPanel VerticalAlignment="Bottom">
...
</StackPanel>
and to populate with buttons upward you must insert the buttons at position 0, instead of adding them.