Answered Bug in ListBox/ListView/VirtualizingStackPanel

  • Sunday, August 05, 2012 7:09 AM
     
      Has Code

    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

All Replies

  • Monday, August 06, 2012 10:11 AM
    Moderator
     
     

    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

  • Tuesday, August 07, 2012 11:46 PM
    Moderator
     
     Answered

    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/

  • Wednesday, August 08, 2012 3:27 AM
     
     
    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. 
  • Thursday, August 09, 2012 1:17 AM
    Moderator
     
     

    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 4:55 AM
     
     
    I'm glad I could help. Fortunately there are some workarounds until this gets fixed sometime post-RTM.

    Filip Skakun

  • Monday, September 10, 2012 9:53 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,
  • Tuesday, March 19, 2013 12:41 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.