views:

28

answers:

1

I've read this question, but still, it explains how to dock controls within DockPanel. How does one dock the DockPanel within the window? alt text

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?

+3  A: 

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.

AnthonyWJones