Bug in ListBox/ListView/VirtualizingStackPanel
-
domenica 5 agosto 2012 07:09
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
Tutte le risposte
-
lunedì 6 agosto 2012 10:11Moderatore
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
-
martedì 7 agosto 2012 23:46Moderatore
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/
- Contrassegnato come risposta James Dailey - MSFTMicrosoft Employee, Moderator martedì 7 agosto 2012 23:46
-
mercoledì 8 agosto 2012 03:27It 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.
-
giovedì 9 agosto 2012 01:17Moderatore
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/
-
giovedì 9 agosto 2012 04:55I'm glad I could help. Fortunately there are some workarounds until this gets fixed sometime post-RTM.
Filip Skakun
-
lunedì 10 settembre 2012 09:53Hello 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, -
martedì 19 marzo 2013 00:41Hi, 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.

