SergioL
SergioL

Reputation: 4963

Visually wrap/cycle items around in WPF container?

I have a WPF/C# situation where I have a horizontal list of items and the user can navigate forward and backward through the list.

Assuming the list has 5 items, below are three mock-ups of the UI (initial, and after the user clicks the right arrow twice.

< [1] [2] [3] [4] >
< [2] [3] [4] [5] >
< [3] [4] [5] [1] >

So, basically, the list should scroll indefinitely in either direction.

There may be a significant number of items (50-150) in the list and will include images. So my first thought would be that I need to use a VirtualizingStackPanel in the solution, but there may be other tracks to get this done without the need for one.

Now, to add to the complexity, the items must animate smoothly forwards and backwards.

Can anyone point me in the right direction?

Upvotes: 1

Views: 305

Answers (1)

Joey
Joey

Reputation: 354456

Dr. WPF had a similar sample once here. Maybe you can adapt the idea.

Upvotes: 2

Related Questions