none
Bug in ListBox/ListView/VirtualizingStackPanel

    Question

  • Found this question on StackOverflow and it seems like the ListBox control has a bug and it also seems to be an issue with the ListView.

    Basically - the small increase RepeatButtons don't work correctly to scroll the list horizontally when it is a vertically oriented list with horizontal scrolling enabled for items wider than the list control itself. The issue also seems to go away when switching the ItemsPanel from VirtualizingStackPanel to StackPanel.

    http://stackoverflow.com/questions/11808529/c-sharp-windows-rt-listbox-horizontal-scroll-issue

    My repro:

    <ListView
        Height="400"
        Width="200"
        ScrollViewer.HorizontalScrollBarVisibility="Auto"
        ScrollViewer.HorizontalScrollMode="Enabled">
        <ListViewItem
            Content="This is my horizontal test # 1" />
        <ListViewItem
            Content="This is my second horizontal test which spams across" />
    </ListView>


    Filip Skakun

    Sunday, August 05, 2012 7:09 AM

Answers

  • Hello Filip,

    Thanks for reporting this issue. This is a known problem with the horizontal scroll of the XAML ListBox control. I am following up with the test lead to get an ETA. Unfortunately the issue sill exists in RTM.

    Thanks again,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Tuesday, August 07, 2012 11:46 PM

All replies

  • Hi Filip,

    I have to say that, yes, I can reproduce your issue. And I am trying to involve senior engineers to further look at this issue.

    Thanks.


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us

    Monday, August 06, 2012 10:11 AM
  • Hello Filip,

    Thanks for reporting this issue. This is a known problem with the horizontal scroll of the XAML ListBox control. I am following up with the test lead to get an ETA. Unfortunately the issue sill exists in RTM.

    Thanks again,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Tuesday, August 07, 2012 11:46 PM
  • It seems that it's not only the Horizontal Scroll but also the Vertical Scroll, if I place the ListBox inside a StackPanel and populate the ListBox with more than the Screen's width then the ScrollViewer is not working properly. 
    Wednesday, August 08, 2012 3:27 AM
  • The issue is actually more systemic than that. The keyboard shortcuts for scrolling are also affected. I'm currently working with the Test Manager to see what we can do to resolve this issue.

    Thanks for reporting it,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, August 09, 2012 1:17 AM
  • I'm glad I could help. Fortunately there are some workarounds until this gets fixed sometime post-RTM.

    Filip Skakun

    Thursday, August 09, 2012 4:55 AM
  • Hello James,

    Do you have an ETA on this bug? And if it's critical enough to warrant a fix before Windows 8 GA? If not, could you provide us with some sample code that somehow works around this? Switching the VirtualizedStackPanel to a StackPanel is not a feasible option since my ListView has over a thousand items and often times throws the following exception, "\ufeffNot enough quota is available to process this command." without the VirtualizedStackPanel in place.

    Thanks,
    Monday, September 10, 2012 9:53 AM
  • Hi, I noticed this problem too and was wondering what workarounds there are for it.  I am populating a listview with 1000+ items.  I thought I was the only one having this trouble until I saw it here too.
    Tuesday, March 19, 2013 12:41 AM