AngryHacker
AngryHacker

Reputation: 61656

Docking of Silverlight Controls

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?

Upvotes: 0

Views: 474

Answers (1)

AnthonyWJones
AnthonyWJones

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

Related Questions