I am currently developing an Xamarin Forms application for a customer. The app should show data, based on the current week selected in a Picker. The app needs a functionality to swipe between the data as well. So the week, of which the data should be shown, can be selected via the Picker or with a swipe gesture (with animation). Swiping should show the next/previous week. But the problem is that I don't know how to implement this as efficient as possible. Is there any best practice to do this? I have thought of a CarouselView, but as the Weeks are infinite, and swiping/loading should as well be possible with past weeks, I don't think that this is a good approach.

1

There are 1 best solutions below

1
Zumpfiii On

You could use the CurrentItemChanged Event.

You just have to create a Listener (via Event or CommandBinding) which searchs for the element in your pickerelement list and sets the currently selected index of the picker as the index of the searched element.