Skip to content

Commit ab11cb6

Browse files
committed
chore: add listbox.small demo
1 parent 24af666 commit ab11cb6

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/Shared/HandyControlDemo_Shared/UserControl/Styles/ListBoxDemoCtl.xaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,21 @@
44
xmlns:hc="https://handyorg.github.io/handycontrol"
55
Background="{DynamicResource RegionBrush}">
66
<hc:TransitioningContentControl>
7-
<ListBox Width="200" Margin="32" ItemsSource="{Binding DataList}">
8-
<ListBox.ItemTemplate>
9-
<DataTemplate>
10-
<TextBlock Text="{Binding Name}"/>
11-
</DataTemplate>
12-
</ListBox.ItemTemplate>
13-
</ListBox>
7+
<WrapPanel Margin="16">
8+
<ListBox Margin="16" Width="200" ItemsSource="{Binding DataList}">
9+
<ListBox.ItemTemplate>
10+
<DataTemplate>
11+
<TextBlock Text="{Binding Name}"/>
12+
</DataTemplate>
13+
</ListBox.ItemTemplate>
14+
</ListBox>
15+
<ListBox Margin="16" Width="200" ItemsSource="{Binding DataList}" Style="{StaticResource ListBox.Small}">
16+
<ListBox.ItemTemplate>
17+
<DataTemplate>
18+
<TextBlock Text="{Binding Name}"/>
19+
</DataTemplate>
20+
</ListBox.ItemTemplate>
21+
</ListBox>
22+
</WrapPanel>
1423
</hc:TransitioningContentControl>
1524
</UserControl>

0 commit comments

Comments
 (0)