Bug in ListView headers (gridview) when using horizontal scrolling

(I though I posted this yesterday, but apparently I didn’t)

There seems to be a bug with the scrolling of the headers (actually it seems to be the contents that scrolls to far), when using horizontal scrolling in maximized window.

Here is how to reproduce:
<ListView>
<ListView.View>
<GridView>
<GridViewColumn Width="300" Header="Column 1" />
<GridViewColumn Width="300" Header="Column 2" />
<GridViewColumn Width="300" Header="Column 3" />
<GridViewColumn Width="300" Header="Column 4" />
<GridViewColumn Width="300" Header="Column 5" />
<GridViewColumn Width="300" Header="Column 6" />
<GridViewColumn Width="300" Header="Column 7" />
<GridViewColumn Width="300" Header="Column 8" />
<GridViewColumn Width="300" Header="Column 9" />
<GridViewColumn Width="300" Header="Column 10" />
</GridView>
</ListView.View>
<ListViewItem Content="Test" />
</ListView>

Maximize the window (make sure that the grid view is bigger than the screen) and scroll the horizontal scroll bar to scroll to the end.
When it reaches the end, the headers stop scrolling before the content.

Best regards,
Thomas S. Andersen



Answer this question

Bug in ListView headers (gridview) when using horizontal scrolling

  • kbradl1

    Thomas S. Andersen wrote:

    (I though I posted this yesterday, but apparently I didn’t)

    There seems to be a bug with the scrolling of the headers (actually it seems to be the contents that scrolls to far), when using horizontal scrolling in maximized window.

    Here is how to reproduce:
    <ListView>
    <ListView.View>
    <GridView>
    <GridViewColumn Width="300" Header="Column 1" />
    <GridViewColumn Width="300" Header="Column 2" />
    <GridViewColumn Width="300" Header="Column 3" />
    <GridViewColumn Width="300" Header="Column 4" />
    <GridViewColumn Width="300" Header="Column 5" />
    <GridViewColumn Width="300" Header="Column 6" />
    <GridViewColumn Width="300" Header="Column 7" />
    <GridViewColumn Width="300" Header="Column 8" />
    <GridViewColumn Width="300" Header="Column 9" />
    <GridViewColumn Width="300" Header="Column 10" />
    </GridView>
    </ListView.View>
    <ListViewItem Content="Test" />
    </ListView>

    Maximize the window (make sure that the grid view is bigger than the screen) and scroll the horizontal scroll bar to scroll to the end.
    When it reaches the end, the headers stop scrolling before the content.

    Best regards,
    Thomas S. Andersen




    Hi,

    I've tried the code you've provided and follow your instructions.

    I've got no problems with the headers.

    FYI, I'm using the Feb CTP


    HTH

    Bye


  • Bob Hicks

    It is a known issue and we've fixed it in Feb CTP. thanks.

    Ji


  • Fahad Habib

    The sample code I posted gives me the faulty behavior.

    Actually I have found that the contents scroll to the same position in maximized window-position as in normal position (did that make any sense ;-))

    Window in normal position (scrolling works):

    http://www.web-tronic.dk/wpf/shot1.jpg

    Window in maximized position (the headers stops scrolling at the scroll position):

    http://www.web-tronic.dk/wpf/shot2.jpg

    Window in maximized position (the content keeps scrolling):

    http://www.web-tronic.dk/wpf/shot3.jpg

    I’m using:

    Windows XP Pro

    WinFX 3.0 Beta 2:

    PresentationFramework Runtime Version: v2.0.50727 Version: 3.0.51116.0

    PresentationCore Runtime Version: v2.0.50727 Version: 3.0.51116.0

    Screen resolution: 1280x1024x32

    Best regards

    Thomas Andersen


  • Marcello Savorani

    We cannot repro it in Feb CTP. Could you upload the screen shot somewhere and give us a link

    Ji


  • ckramer

    got it.

    Actually we can repro it in former version but Feb CTP. Sorry for the inconvenience, could you please reintall it I am sure it is fixed.

    Ji


  • traitors

    Hi,

    I've got the problem too. My setup is:

    Windows XP Prof. 2002 SP2
    RC 3.0.50727.358

    SDK 6.0.5308.0.9
    Screen: 1280x1024

    Thomas (Anderson), do you have the problem with vertical resize of the listview too For example if you insert 50 listviewitems and maximize the window, the listview doesn't stretch vertical.

    -Daniel


  • pomone

    Hi Ji,

    Thanks for your reply. But I'm using Feb CTP

    Best regards,
    Thomas Andersen


  • Bug in ListView headers (gridview) when using horizontal scrolling