Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AlBannaTechno opened this issue May 17, 2021 · 1 comment

Comments

@AlBannaTechno
Copy link

AlBannaTechno commented May 17, 2021

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

AlBannaTechno added a commit to AlBannaTechno/HandyControl that referenced this issue May 17, 2021
AlBannaTechno added a commit to AlBannaTechno/HandyControl that referenced this issue May 17, 2021
@AlBannaTechno
Copy link
Author

i fixed it in #832

@NaBian NaBian closed this as completed in 57624dc May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant