我对 ListViewItem 有疑问,我这样定义样式:
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Background" Value="Red"></Setter>
</Style>
</ListView.ItemContainerStyle>
结果是:
如何拉伸 ListViewItems ?
非常感谢