Skip to content

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

Closed

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

Activity

  1. added 2 commits that reference this issue on May 17, 2021
    cfc1988
    7ecdf27
  2. AlBannaTechno commented on May 17, 2021

    @AlBannaTechno
    Author

    i fixed it in #832

  3. added a commit that references this issue on Mar 28, 2024
    57624dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      ⌂ 换网址