C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Here: I added four CheckBox controls and changed their Content attributes. They each indicate a breakfast food.
So: The StackPanel contains all sorts of items you could eat for breakfast, such as eggs, pancakes, muffins and toast.
Example markup: XAML
<Window x:Class="WpfApplication22.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Breakfast" Height="350" Width="525">
<Grid>
<StackPanel HorizontalAlignment="Left"
Height="100"
Margin="10,10,0,0"
VerticalAlignment="Top"
Width="100">
<CheckBox Content="Eggs"/>
<CheckBox Content="Pancakes"/>
<CheckBox Content="Muffins"/>
<CheckBox Content="Toast"/>
<CheckBox Content="Bacon"/>
</StackPanel>
</Grid>
</Window>
However: When controls should fill the entire horizontal area, the WrapPanel will lead to a better use of space.
WrapPanel