wpf - 如何正确对齐 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 移到单位的位置。
解决方案
推荐阅读
- dynamics-crm - 如何隐藏 Dynamics 365 应用程序 for Outlook 中的按钮?
- generics - Kotlin:即使类具有可为空的泛型参数类型 E,赋值也会失败
- node.js - AWS Lambda SNS 事件未使用无服务器 yml 绑定到正确的 SNS 主题 ARN
- java - 在 servlet 容器中使用 REST 客户端时的最佳实践
- angular - 如何将管道与表单组中的类别匹配
- sql - 在 SQL Server 中计算每个月的平均值
- sql - Presto 有 translate() 之类的函数吗?
- flutter - 如何在 FutureBuilder (builder:) 中的方法中引用变量?
- python - 熊猫 to_datetime 忽略格式
- xamarin.ios - 阅读更多关于 UILabel 的切换