I'm just starting out with WPF and I'm trying to layout a UI.
I have a StackPanel and within it's bounds I want two listboxes stacked vertically, each covering half of the container panel - regardless of what contents are in them. So far, the listboxes are resizing depending in the items in them, so when they are empty, they don't cover any of the container panel, and as items are added they resize and look pretty ugly.
In the old Winforms days I'd trap a resize event and set the height manually. I know that's not the "right" way anymore, but I'm not sure what the right way is!
So, any suggestions?