I want to horizontally stretch a ListView
in UWP 10. I also set the HorizontalContentAlignment
to Stretch
. It kinda works, but its not exa
You need to modify ItemContainerStyle's padding and margin:
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="0"/>
</Style>
</ListView.ItemContainerStyle>
You also have defined Grid's padding to 8, what will result in aqua background around your item.