WPF Web Based

WPF Examples

WPF

WPF Projects

WPF Project

adplus-dvertising
Stack Panel Control in WPF WEB BASED
Previous Home Next

The StackPanel, as the name implies, arranges content either horizontally or vertically. Vertical is the default, but this can be changed using the Orientation property. Content is automatically stretched based on the orientation (see screenshot below), and this can be controlled by changing the HorizontalAlignment or VerticalAlignment properties.

The StackPanel, as the name implies, arranges content either horizontally or vertically. Vertical is the default, but this can be changed using the Orientation property. Content is automatically stretched based on the orientation (see screenshot below), and this can be controlled by changing the HorizontalAlignment or VerticalAlignment properties.

<StackPanel Width="Auto" Height="Auto"> <Button Content="Button" /> 
<Button Content="Button" HorizontalAlignment="Left" />
<Button Content="Button" HorizontalAlignment="Center" /> 
<Button Content="Button" HorizontalAlignment="Right" /> 
</StackPanel>

The StackPanel can also be oriented horizontally.

<StackPanel Width="Auto" Height="Auto" Orientation="Horizontal"> 
<Button Content="Button" /> <Button Content="Button" VerticalAlignment="Top" />
<Button Content="Button" VerticalAlignment="Center" /> 
<Button Content="Button" VerticalAlignment="Bottom" /> 
</StackPanel>
Previous Home Next
WPF Examples

WPF

WPF

WPF

WPF

WPF

WPF

WPF

WPF