Working with DockPanel
The DockPanel type, as the name implies, allows you to dock items, including other panels, to a fixed
position. Again, Top, Left, Bottom, Right attached properties are used by the sub-elements. Given that the
following Button type has not specified any DockPanel.Dock value, it will therefore be stretched within the
remaining space.
<DockPanel>
<!-- Dock items to the panel -->
<Label DockPanel.Dock = "Top" Name = "lblInstruction"
FontSize = "15">Enter Car Information</Label>
<Label DockPanel.Dock = "Left" Name = "lblMake">Make</Label>
<Label DockPanel.Dock = "Right" Name = "lblColor">Color</Label>
<Label DockPanel.Dock = "Bottom" Name = "lblPetName">
Pet Name</Label>
<Button Name = "btnOK">OK</Button>
</DockPanel>
DockPanel
Table of Contents
Copyright (c) 2008. Intertech, Inc. All Rights Reserved. This information is to be used exclusively as an
online learning aid. Any attempts to copy, reproduce, or use for training is strictly prohibited.
Courseware
Training Resources
Tutorials
Services