2018-12-12から1日間の記事一覧
ListViewItemのHorizontalContentAlignmentプロパティをStretchにする。 ポイントはこれ。 ListViewItemの横幅をStretchにしないと,せっかくTextAlignmentを設定しても右寄せにはならない。 <UserControl.Resources> <ResourceDictionary> <Style TargetType="{x:Type ListViewItem}"> <Setter Property="HorizontalContentAlignment" Value="Stret</style></resourcedictionary></usercontrol.resources>…