<ListBox.ItemContainerStyle>
<Style TargetType="Control">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Height" Value="42"/>
</Style>
</ListBox.ItemContainerStyle>
转载于:https://www.cnblogs.com/changbaishan/p/3528061.html