首页 > 解决方案 > 如何正确对齐 ItemsControl 中的数字

问题描述

在 xaml 我有:

<ItemsControl Grid.Row="1" Grid.Column="3"  x:Name="SelectedCountCollection"  ItemsSource="{Binding SelectedCountList}" Foreground="Purple" Margin="0,0,1,0" HorizontalContentAlignment="Stretch"/>

我最终得到的数据看起来像这样:

20                   

5                      

7   

我需要将 5 移到单位的位置。我需要将 7 移到单位的位置。

标签: wpfxamlsilverlight

解决方案


推荐阅读