Reputation: 61656
I've read this question, but still, it explains how to dock controls within DockPanel. How does one dock the DockPanel within the window?
As you can see, the Map control is docked to the DockPanel, but the DockPanel is not docked to the window.
What am I missing?
Upvotes: 0
Views: 474
Reputation: 189555
Remove HorizontalAlignment
and VerticalAlignment
properties from the DockPanel
, the default for these properties is Stretch
which will cause the DockPanel
to fill the available space.
Upvotes: 3