DOCK PANEL in WPF

0
DOCK PANEL in WPF:-


Dock Panel is used to arrange the child component top, left, right, and bottom.

The Dock panel is best in dimension .it will automatically manage the element in left alignment.
The default width and height of the Dock element is 100%

<DockPanel>
        <Button Height="100" Width="100" DockPanel.Dock="Left">1</Button>

        <Button Height="100" Width="100" DockPanel.Dock="Right">7</Button>
        <Button Height="100" Width="100" DockPanel.Dock="Top">8</Button>
        <Button Height="100" Width="100" DockPanel.Dock="Bottom">2</Button>
       


    </DockPanel>




Post a Comment

0Comments

POST Answer of Questions and ASK to Doubt

Post a Comment (0)