locked
LiveView ItemContainer Margin RRS feed

  • Question

  • Hello,

    I have a ListView, but seems there are always margins around each item. How to remove it?

    I tried many ways, such as

    <ListView Margin="0" Padding="0">

    and

    <ListView>
    <ListView.ItemContainerStyle>
    <Style
    TargetType="ListViewItem">
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="0,0,0,0"/>
            <Setter Property="Padding" Value="0,0,0,0"/>
        </Style>
    </ListView.ItemContainerStyle>
    </ListView>

    But neither works.

    What's the right way to make no gap among items?

    Thanks a lot!

    Wednesday, August 7, 2013 9:25 PM

Answers

All replies