ListViewItem won't stretch to the width of a ListView

前端 未结 1 673
有刺的猬
有刺的猬 2020-11-28 03:33

I\'m currently designing a windows 8 store app using XAML but I have a minor sizing issue. I have a ListView with a DataTemple.

The code for my ListView & DataTe

相关标签:
1条回答
  • 2020-11-28 04:15

    Try adding the following to your ListView definition

    <ListView.ItemContainerStyle>
        <Style TargetType="ListViewItem">
            <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        </Style>
    </ListView.ItemContainerStyle>
    
    0 讨论(0)
提交回复
热议问题