ItemsStackPanel with ListView does not layout items properly when horizontal scroll mode is enabled #9860
Labels
area-Lists
ListView, GridView, ListBox, etc
bug
Something isn't working
team-Controls
Issue for the Controls team
Describe the bug
When horizontal scroll mode is enabled in a
ListView
withItemsStackPanel
, it does not measure and arrange item content correctly. This issue seems to occur only when the child or a descendant is aTextBlock
whose desired width exceeds its set width. Replacing theItemsStackPanel
with aStackPanel
resolves the issue, but at the cost of losing virtualization.Steps to reproduce the bug
Add the code below to a new app and you'll be able to see the issue.
Or here the simple app to demonstrate this issue. https://github.com/w-ahmad/ListViewLayoutIssue. You can increase value in
NumberBox
until the issue is gone.Expected behavior
The item's content should be measured and arranged properly, as they are when horizontal scroll mode is disabled.
Screenshots
No response
NuGet package version
None
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: