You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
[Feature] StaggeredLayout based on ItemsRepeater #3114
The current StaggeredPanel in this toolkit is based on Panel class, which doesn't offer UI virtualization. Memory consumption can go very high when a large amount of items are loaded.
Describe the solution
We could enable UI virtualization if we build a StaggeredLayout based on ItemsRepeater. This new control could have the same API as the existing StaggeredPanel.
Additional context & Screenshots
I've already built a prototype in-house. It still needs some polishing, but I hope to get it ready in the WinUI 3.0 timeframe. This should be in-line with 7.0 release plan #3062.
Reacted by Justin Liu, Kyaa Dost, Shawn Kendrot and John Torjo
@DL444@JustinXinLiu mentioned you had interest in working on this feature. Let us know. I know @skendrot had interest in this as well, so feel free to coordinate.
@DL444 I'm currently in the process of converting all of the panels within the toolkit (WrapPanel and StaggeredPanel currently) to use the ItemsRepeater.
I took a look at your repo and it's looking good, however there are rendering issues. In the picture below the left side is my current StaggeredLayout control and the right is yours. You can see how the items are not rendering properly on the right hand side
It's not all roses on my side. This ItemsRepeater is taking some time learning how to work with it and there's no information out there except for the core **Layout source
@skendrot I see. This is what I mean by "polishing". That code wasn't really tested for all situations.
By the way, how could I reproduce that issue? It seems that one change is the width of the rectangles.
I created a 7.0 branch. We should pull all the layout panels into their own package as a first step so we don't pull the WinUI dependency in for all the controls yet. Let me know if you need a hand creating the new project structure or not.
Activity
michael-hawker commentedon Jan 29, 2020
@DL444 @JustinXinLiu mentioned you had interest in working on this feature. Let us know. I know @skendrot had interest in this as well, so feel free to coordinate.
skendrot commentedon Jan 30, 2020
@DL444 I'm currently in the process of converting all of the panels within the toolkit (WrapPanel and StaggeredPanel currently) to use the ItemsRepeater.
I took a look at your repo and it's looking good, however there are rendering issues. In the picture below the left side is my current StaggeredLayout control and the right is yours. You can see how the items are not rendering properly on the right hand side
It's not all roses on my side. This ItemsRepeater is taking some time learning how to work with it and there's no information out there except for the core **Layout source
DL444 commentedon Jan 31, 2020
@skendrot I see. This is what I mean by "polishing". That code wasn't really tested for all situations.
By the way, how could I reproduce that issue? It seems that one change is the width of the rectangles.
skendrot commentedon Jan 31, 2020
@DL444 I just added a bunch of random items
michael-hawker commentedon Jan 31, 2020
Thanks @skendrot for the updates! 🦙❤
I created a 7.0 branch. We should pull all the layout panels into their own package as a first step so we don't pull the WinUI dependency in for all the controls yet. Let me know if you need a hand creating the new project structure or not.