I have a vertical StackPanel with two elements: a Button and a ListBox. How can I have the ListBox stretch to the remaining page height?
You can use a DockPanel. Set the first item to dock top and the second to dock fill, or use the LastChildFill property:
DockPanel
LastChildFill