Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: [VirtualizingContext.RealizationRect bounds] #3322

Closed
BorzillaR opened this issue Sep 24, 2020 · 3 comments
Closed

Question: [VirtualizingContext.RealizationRect bounds] #3322

BorzillaR opened this issue Sep 24, 2020 · 3 comments
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

Comments

@BorzillaR
Copy link

BorzillaR commented Sep 24, 2020

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.

image

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

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Sep 24, 2020
@StephenLPeters StephenLPeters added appModel-win32 Exclusive to WinUI 3 Win32 Desktop apps area-ItemsRepeater team-Controls Issue for the Controls team product-winui3 WinUI 3 issues and removed needs-triage Issue needs to be triaged by the area owners labels Sep 24, 2020
@StephenLPeters
Copy link
Contributor

@ranjeshj can you weigh in?

@ranjeshj
Copy link
Contributor

This looks like the issue with effective viewport not providing the correct bounds. Boiled down repro steps are available in this issue.

@BorzillaR
Copy link
Author

This issue still exists in Preview 4
Updated project

@microsoft microsoft locked and limited conversation to collaborators Jul 22, 2022
@bkudiess bkudiess converted this issue into discussion #7510 Jul 22, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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
Projects
None yet
Development

No branches or pull requests

3 participants