<DockPanel .../> <DockPanel .../> uses the attached Dock attribute to position content along the edges of a container. When Dock is set to Top or Bottom, it stacks the child elements above or below each other. When Dock is set to Left or Right, it stacks the child elements to the left or right of each other. You can use DockPanel to position a group of related controls, such as a set of buttons. As with the properties of Canvas, Dock is an attached attribute and is declared by child elements. The default value of Dock is Left. The following is an example of elements declaring the DockPanel.Dock attribute: <DockPanel> <Button DockPanel.Dock="Top|Right|Bottom|Left" Content="Button 1" /> <TextBox DockPanel.Dock="Top|Right|Bottom|Left" Content="This is my content" /> </DockPanel> Attached Attributes
|