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.
@mdtauk Because looping Carousel will not cover all use cases of looping items. Ex: Carousel always has selected item at centre. In short, Carousel will not cover all the use case of ListViewBase(ListView, GridView, etc). Also, this panel can be easily reused in future controls like TrainView #1209, where it makes lot of sence to have looping items.
Hmm. From a design point of view, how do you indicate when a loop starts. A scrollbar indicator goes from one point to another. How does that work when there is no finite range? How does it work with mouse and keyboard control?
There is a lot to consider, and then finding use-cases that justify this kind of control needs to be collated. To see if it is worth the investment of time that would go into it, and to iron out the problems and issues related to it.
I would really like to be able to loop to the start of a long scrolling list (say on the phone) when I reach the bottom. Possibly with a customizable (and optional) visual end marker (horizontal, or vertical if list is horizontral, ruler) so that the looping occurrence is more obvious to the user. And I mean to add "Looping" bool property (defaulting probably to false if xaml-standard opts for compatibility over UX) to any List control that can scroll when it can't fit all its items in the view
...and loop in the other way too, when I pull enough to overcome spring animation at the start of the list view, I'd like it to loop. Useful for lists that are sorted and long and you know you want to start browsing from the bottom without doing a resorting (or when multiple resorting UIs are too much to add - eg at data entry form fields)
@Mimetis In my opinion "create an ItemsPanelTemplate to be able to customize any ItemsControl control" will have higher priority than "implement the loop mode in the Carousel". Devs can create looping Carousel with LoopItemsPanel but not vice versa. "Both" is good for devs.
The ItemsPanel Inside the Carousel is highly coupled with the control itself.
Actually, it's not possible to replace the Carousel's ItemsPanel with another one.
I already thought to change this behavior to have a carousel control without any dependencies with its items panel, but it's really complicated.
So for now, if you want a LoopItemsPanel to be able to use it in a Listbox or a ListView, you won't have it for the Carousel
BTW, how are you doing the looping? Are you using some Enumerable implementation that yields items infinitely by looping a cursor over a collection of items? (and having some property on whether it loops at end or not?)
However, since Enumerables are one direction only, I wonder how they’d be used, so guess you’re not using such. Or have Enumerables evolved since last time I checked them?
@birbilis : As explained in the blog post, it' all about positioning items during the UpdatePosition method.
Nothing really complicated, actually.
Using the RenderTransform to virtually be able to position the item at the right place :)
@nmetulev : Yea, you're so right :) Definitively the right solution, I guess. Actually it won't be easy, but it's will be a really cool feature if we can do that.
But it will be a big breaking changes from the actual Carousel
First of all, do you think that creating the LoopItemsTemplate for any ListBox / ListView is a good starting point ?
To be honest I'm afraid that everyone will complained that the LoopItemsTemplate will not be compatible with the Carousel
btw, conceptually I'd prefer to just have a Looping Boolean property/attribute somewhere, rather than a separate layout control, however the 2nd case is probably more flexible for modifications (assuming sealing isn't used)
Activity
mdtauk commentedon Sep 3, 2017
Is this not a Carousel that loops? Why not add a loop option to that control?
Vijay-Nirmal commentedon Sep 3, 2017
@mdtauk Because looping Carousel will not cover all use cases of looping items. Ex: Carousel always has selected item at centre. In short, Carousel will not cover all the use case of ListViewBase(ListView, GridView, etc). Also, this panel can be easily reused in future controls like TrainView #1209, where it makes lot of sence to have looping items.
mdtauk commentedon Sep 3, 2017
Hmm. From a design point of view, how do you indicate when a loop starts. A scrollbar indicator goes from one point to another. How does that work when there is no finite range? How does it work with mouse and keyboard control?
There is a lot to consider, and then finding use-cases that justify this kind of control needs to be collated. To see if it is worth the investment of time that would go into it, and to iron out the problems and issues related to it.
Vijay-Nirmal commentedon Sep 3, 2017
@mdtauk I get this idea from Microsoft blog post. They have explained it with a sample code.
michael-hawker commentedon Sep 6, 2017
I like the idea of generalizing this. I think the sticking point as @mdtauk mentioned is how the scrollbar behaves with each control.
birbilis commentedon Sep 7, 2017
I would really like to be able to loop to the start of a long scrolling list (say on the phone) when I reach the bottom. Possibly with a customizable (and optional) visual end marker (horizontal, or vertical if list is horizontral, ruler) so that the looping occurrence is more obvious to the user. And I mean to add "Looping" bool property (defaulting probably to false if xaml-standard opts for compatibility over UX) to any List control that can scroll when it can't fit all its items in the view
birbilis commentedon Sep 8, 2017
...and loop in the other way too, when I pull enough to overcome spring animation at the start of the list view, I'd like it to loop. Useful for lists that are sorted and long and you know you want to start browsing from the bottom without doing a resorting (or when multiple resorting UIs are too much to add - eg at data entry form fields)
Mimetis commentedon Sep 27, 2017
I'm actually the author of the LoopItemsPanel, and the Carousel control.
I think (in my opinion) the question is :
Carousel(see Loop for Carousel #1462 )ItemsPanelTemplateto be able to customize anyItemsControlcontrolVijay-Nirmal commentedon Sep 27, 2017
@Mimetis In my opinion "create an
ItemsPanelTemplateto be able to customize anyItemsControlcontrol" will have higher priority than "implement the loop mode in theCarousel". Devs can create loopingCarouselwithLoopItemsPanelbut not vice versa. "Both" is good for devs.Mimetis commentedon Sep 27, 2017
The
ItemsPanelInside theCarouselis highly coupled with the control itself.Actually, it's not possible to replace the Carousel's ItemsPanel with another one.
I already thought to change this behavior to have a carousel control without any dependencies with its items panel, but it's really complicated.
So for now, if you want a
LoopItemsPanelto be able to use it in aListboxor aListView, you won't have it for theCarouselnmetulev commentedon Sep 27, 2017
@Mimetis, what about creating a LoopItemsPanel and extending the CarouselPanel from the LooptemsPanel to get the looping experience?
birbilis commentedon Sep 28, 2017
Mimetis commentedon Sep 28, 2017
@birbilis : As explained in the blog post, it' all about positioning items during the
UpdatePositionmethod.Nothing really complicated, actually.
Using the
RenderTransformto virtually be able to position the item at the right place :)@nmetulev : Yea, you're so right :) Definitively the right solution, I guess. Actually it won't be easy, but it's will be a really cool feature if we can do that.
But it will be a big breaking changes from the actual
CarouselFirst of all, do you think that creating the
LoopItemsTemplatefor anyListBox/ListViewis a good starting point ?To be honest I'm afraid that everyone will complained that the
LoopItemsTemplatewill not be compatible with theCarousel9 remaining items
lucaasrojas commentedon Jun 29, 2018
Whats the current status?
touseefbsb commentedon Sep 26, 2018
it looks like the uservoice has 17 votes for this one. @Vijay-Nirmal
hupo376787 commentedon May 23, 2019
23 votes now.
Does it still under investing?
michael-hawker commentedon May 23, 2019
@hupo376787 I think this scenario is covered by WinUI now, eh @JustinXinLiu?
@JustinXinLiu would this just be an example or is there enough code that it should have a helper?
hupo376787 commentedon Jul 22, 2019
Hmm,,,
skendrot commentedon Jul 22, 2019
Anyone wanting a virtualized looping list take a look at this. Great performance the new Repeater from WinUI
https://github.com/microsoft/InsiderDevTourDemos19/blob/master/Sessions/ui/Uwp.App/Uwp.App/Layouts/VirtualizingUniformCarousalStackLayout.cs
hupo376787 commentedon Jul 23, 2019
Thanks, @skendrot . I'll look into it.
michael-hawker commentedon Sep 11, 2019
Thanks for the link and reminder @skendrot. @JustinXinLiu you going to add this to the toolkit 😉 or is there something missing from it still?
JustinXinLiu commentedon Sep 11, 2019
This should be a layout control provided by WinUI. @skendrot would you mind creating an issue on WinUI GitHub page?
birbilis commentedon Sep 12, 2019
btw, conceptually I'd prefer to just have a Looping Boolean property/attribute somewhere, rather than a separate layout control, however the 2nd case is probably more flexible for modifications (assuming sealing isn't used)