Sharpnado.Tabs
Sharpnado.Tabs copied to clipboard
How to swipe between tabs
Is your feature request related to a problem? Please describe. I want the TabHostView and ViewSwitcher to have the carousel effect? In other words make it work just like a tabstrip works on Android.[...]
Thank you very much for this amazing library.
You can already :) Use a TabHostView with the HorizontalList (with Carousel Layout) instead of the ViewSwitcher, and bind SelectedIndex to CurrentIndex.
Oh! You are awesome!!! That worked perfectly!
I have 1 more small question, how would I make the underlined part of the tab header to have the carousel effect? is that possible?
unfortunately it would require a new implementation of the tabs for this...
I see thank you! I will try implementing the tab.
You can create a feature request for this. I will have time to improve tabs this summer :)
If I was successful I will pull request it. If not I will feature request it.
Again, Than you so much for this library!
You can already :) Use a TabHostView with the HorizontalList (with Carousel Layout) instead of the ViewSwitcher, and bind SelectedIndex to CurrentIndex.
Hi @roubachof, How to use HorizontalList (with Carousel Layout) instead of ViewSwitcher with different content in each tab? As I know, HorizontalListView has only one DataTemplate to declare its content.
Thank you for your amazing lib.
With a DataTemplateSelector :)
With a DataTemplateSelector :) Could you please give me a sample? Thank you @roubachof,
https://docs.microsoft.com/en/xamarin/xamarin-forms/app-fundamentals/templates/data-templates/selector
Shouldn't this be the default behaviour. If not, is it planned in the future?
Use a TabHostView with the HorizontalList (or even with CardsView instead of the ViewSwitcher, and bind SelectedIndex to CurrentIndex.
If we use the horizontalist, can we still use the delayed view? I found the delayed view is very useful.
I'm looking to divide a view into tabs, allowing users to navigate without scrolling by organizing properties into context-specific tabs (for instance, one tab for credentials and another for notification preferences in a profile view). As a collection view isn't suitable for this, I'd like to implement a way to swipe between tabs. I've experimented with SwipeGestureRecognizers, but the outcome wasn't ideal.