Tuesday, August 11, 2015

WPF: How to hide the header of a listview

Just add the following style with GridView.ColumnHeaderContainerStyle tag to your XAML:

<ListView ...>
    <ListView.View>
        <GridView>
            ...
            <GridView.ColumnHeaderContainerStyle>
                <Style>
                    <Setter Property="FrameworkElement.Visibility" Value="Collapsed" />
                </Style>
            </GridView.ColumnHeaderContainerStyle>
            ...
        </GridViewColumn>
    </ListView.View>
</ListView>

No comments:

Post a Comment