Files
HandyControl/Net35/HandyControlDemo_Net35/UserControl/Styles/ListBoxDemoCtl.xaml
T
2019-01-21 00:43:10 +08:00

13 lines
544 B
XML

<UserControl x:Class="HandyControlDemo.UserControl.ListBoxDemoCtl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Background="{DynamicResource RegionBrush}">
<ListBox Width="200" Margin="32" ItemsSource="{Binding DataList}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</UserControl>