ItemsSource="{Binding}">
Background="SteelBlue" Padding="5" BorderBrush="Black"
BorderThickness="1" Margin="0,2">
Text="{Binding}"/>
And the result:
The
ItemTemplate
determines the layout of each item in the list. On the other hand the ItemsPanel
is the panel that will contain the individual items. Given the above definition the visual tree will be something similar to this:
No comments:
Post a Comment