|
|
@@ -6,19 +6,20 @@
|
|
|
<TextBlock Classes="h1">ItemsRepeater</TextBlock>
|
|
|
<TextBlock Classes="h2">A data-driven collection control that incorporates a flexible layout system, custom views, and virtualization.</TextBlock>
|
|
|
</StackPanel>
|
|
|
- <StackPanel DockPanel.Dock="Right" Margin="8 0">
|
|
|
+ <StackPanel DockPanel.Dock="Right" Margin="8 0" Spacing="4">
|
|
|
<ComboBox SelectedIndex="0" SelectionChanged="LayoutChanged">
|
|
|
<ComboBoxItem>Stack - Vertical</ComboBoxItem>
|
|
|
<ComboBoxItem>Stack - Horizontal</ComboBoxItem>
|
|
|
<ComboBoxItem>UniformGrid - Vertical</ComboBoxItem>
|
|
|
<ComboBoxItem>UniformGrid - Horizontal</ComboBoxItem>
|
|
|
</ComboBox>
|
|
|
+ <Button Command="{Binding AddItem}">Add Item</Button>
|
|
|
</StackPanel>
|
|
|
<Border BorderThickness="1" BorderBrush="{DynamicResource ThemeBorderMidBrush}" Margin="0 0 0 16">
|
|
|
<ScrollViewer Name="scroller"
|
|
|
HorizontalScrollBarVisibility="Auto"
|
|
|
VerticalScrollBarVisibility="Auto">
|
|
|
- <ItemsRepeater Name="repeater" Items="{Binding}"/>
|
|
|
+ <ItemsRepeater Name="repeater" Items="{Binding Items}"/>
|
|
|
</ScrollViewer>
|
|
|
</Border>
|
|
|
</DockPanel>
|