July 2015
Intermediate to advanced
1300 pages
87h 27m
English
The DockPanel container has some similarities with the StackPanel in that it allows arranging child controls near each other. The main difference in DockPanel is that child controls are docked to the panel sides according to the direction you specify, and they are docked to each other and you can establish the position and size for each child control. The most common usage of the DockPanel panel is creating interfaces for placing menus and toolbars. The following example shows how you can dock multiple toolbars and their buttons within a DockPanel:
<DockPanel VerticalAlignment="Top" LastChildFill="True"> <ToolBar DockPanel.Dock="Top" Name="MainToolbar" > <Button Content="First ...