This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Question: [VirtualizingContext.RealizationRect bounds] #3322
Labels
appModel-win32
Exclusive to WinUI 3 Win32 Desktop apps
area-ItemsRepeater
product-winui3
WinUI 3 issues
question
team-Controls
Issue for the Controls team
Hello!
I try to checkout ItemsRepeater for new WinUI (Desktop). I want to write a simple list of strings with a virtualization UI. To start with I copy ActivityFeedLayout from Xaml Controls Gallery sample. Next, I modify it that it shows only one column. As ItemTemplate I use a TextBlock. When I set VerticalCacheLength and HorizontalCacheLength to 0 to see how items look like, I notice that the layout does not start from first item. Instead of this there is some blank space at the top of the ScrollViewer.
To know what happens I debug the code and see that RealizationRect.Y which comes on measure is not zero. Could you explane why this happens and help me to understand and fix this issue?
My project is attached bellow
ItemsRepeater.zip
The text was updated successfully, but these errors were encountered: