以下是xaml界面的大致改法
<ListBox ItemsSource="{Binding RunTextList}" Height="30" Width="120" BorderBrush="Transparent" BorderThickness="0">
<ListBox.ItemsPanel>
<!--改变ListBox控件Panel模板-横向-->
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"></StackPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<!--改变ListBox控件内容模板--文本-->
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Text}" Foreground="{Binding ForeGroundColor}" FontSize="12"></TextBlock>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>