DockPanel
DockPanel provides Docking support to its contained
controls. It’s having Dock attached property.
Which you can set DockPanel contained controls to Left, Right, Bottom
and Top. Last control is fills remaining place.
<DockPanel>
<Button DockPanel.Dock="Bottom">Bottom</Button>
<Button DockPanel.Dock="Left">Left</Button>
<Button DockPanel.Dock="Right">Right</Button>
<Button DockPanel.Dock="Top">Top</Button>
<Button>Button</Button>
</DockPanel>
In the above example shown child controls Dock position.
No comments:
Post a Comment