Skip to content

[Bug] ListView With GridView: Horiznotal Scroll only scroll content not header : [Header Sync Does Not Works] #831

@AlBannaTechno

Description

@AlBannaTechno

Describe the bug
Just create a listview with GridView as its view

    <ListView
                x:Name="FirstItemsCollection"
                BorderThickness="0"
                SelectionMode="Single">
                <ListView.View>
                    <GridView >
                        <GridViewColumn Header="Firstname" DisplayMemberBinding="{Binding Firstname}"/>
                        <GridViewColumn Header="Lastname" DisplayMemberBinding="{Binding Lastname}"/>
                        <GridViewColumn Header="Phone" DisplayMemberBinding="{Binding Phone}"/>
                        <GridViewColumn Header="Age" DisplayMemberBinding="{Binding Age}"/>
                    </GridView>
                </ListView.View>
            </ListView>

then try to scroll, with horizontal overflow, you will find that header will not sync with the content

ACCC7DB6-4534-4B04-9A12-96CBF7FAFE43

I think this issue related to HandyControl, because as in workaround tab
if we just remove handyControl style

  <ListView.Style>
                    <Style TargetType="ListView">
                    </Style>
                </ListView.Style>

everything will work, but Now we lost HandyControl Style 😱

This is a repo to reproduce this issue

Environment (please complete the following information):

  • .Net Framework: 4.8
  • Version: 3.1.0

Additional context
This Stackoverflow Question May Be Useful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions