WPF中关于ListBox的样式定制

可以自定义ListItem的显示样式,在其中嵌入具体需要呈现的内容

<ListBox Name="antennaListBox" Height="200" Width="149" Margin="0,5,0,0">
    <ListBox.ItemTemplate>
        <DataTemplate>
             <StackPanel>
                  <TextBlock Text="{Binding Path=Name}" />
             </StackPanel>
        </DataTemplate>
   </ListBox.ItemTemplate>
</ListBox>
原文地址:https://www.cnblogs.com/wantoo/p/4121746.html