How to declaratively get a UIElement to fill its parent?


I’d like to have a UIElement “dock” to the bottom of the screen, with a fixed height and horizontally fill from the left to right edges. I know that I can do this by watching the parent’s size in event handlers (or subclassing a UIElement, I guess), but I’m wondering if this is possible to do declaratively? Something like SetHorizontalAlignment(HA_FILL)?


Currently you can’t. This pull request however should hopefully go in in the near future:

Yeah that looks perfect, thanks! You dropped the last number from the link, it should be

Thanks for the correction.