chore: add listbox.small demo

This commit is contained in:
NaBian committed 2021-11-28 13:16:26 +08:00
1 parent 24af66624f
commit ab11cb6456
1 file changed
+16 -7
@@ -4,12 +4,21 @@
xmlns:hc="https://handyorg.github.io/handycontrol" xmlns:hc="https://handyorg.github.io/handycontrol"
Background="{DynamicResource RegionBrush}"> Background="{DynamicResource RegionBrush}">
<hc:TransitioningContentControl> <hc:TransitioningContentControl>
<ListBox Width="200" Margin="32" ItemsSource="{Binding DataList}"> <WrapPanel Margin="16">
<ListBox.ItemTemplate> <ListBox Margin="16" Width="200" ItemsSource="{Binding DataList}">
<DataTemplate> <ListBox.ItemTemplate>
<TextBlock Text="{Binding Name}"/> <DataTemplate>
</DataTemplate> <TextBlock Text="{Binding Name}"/>
</ListBox.ItemTemplate> </DataTemplate>
</ListBox> </ListBox.ItemTemplate>
</ListBox>
<ListBox Margin="16" Width="200" ItemsSource="{Binding DataList}" Style="{StaticResource ListBox.Small}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</WrapPanel>
</hc:TransitioningContentControl> </hc:TransitioningContentControl>
</UserControl> </UserControl>