DockPanel, which only makes an appearance in WPF, enables easy docking of elements to an entire side of the panel, stretching it to fill the entire width or height. (This is unlike
Canvas, which enables you to dock elements to a corner only.)
DockPanel also enables a single element to fill all the remaining space unused by the docked elements.
DockPanel has a
Dock attached property so children can control their docking with one of four possible values:
Left (the default when
Dock isn’t applied),
Bottom. Note that there is no
Fill value for
Dock. Instead, the last child added to a
DockPanel fills the remaining space unless
LastChildFill property is set to
LastChildFill set to
true (the default), ...