StackPanel
StackPanel arranges its child controls in vertical or horizontal.
Default orientation is vertical.
<StackPanel>
<TextBlock Background="LightBlue" FontSize="22">List of
controls</TextBlock>
<Button Margin="5" Height="30">Button </Button>
<CheckBox Margin="3">First
Checkbox</CheckBox>
<CheckBox Margin="3">Second
Checkbox</CheckBox>
<TextBox Background="LightYellow"></TextBox>
</StackPanel>
If you want to set child controls to horizontally, set StackPanel
property Orientation="Horizontal".
No comments:
Post a Comment