Forum Xamarin Xamarin.Forms

How can I use swipe gesture to switch between tabs when using Xamarin Forms Shell TabBar?

gothikgothik INMember ✭✭
edited September 2019 in Xamarin.Forms


I'm looking for swipe gesture usage in xamarin forms shell TabBar (Bottom) to switch between ShellContent.

<Shell xmlns="" xmlns:x="" xmlns:d="" xmlns:mc="" mc:Ignorable="d" xmlns:local="clr-namespace:p1.Views" Title="p1" x:Class="p1.AppShell"> <TabBar> <Tab Title="Home" Icon="baseline_home_24.xml"> <ShellContent ContentTemplate="{DataTemplate local:HomePage}" /> </Tab> <Tab Title="Page One" Icon="baseline_directions_p1.xml"> <ShellContent ContentTemplate="{DataTemplate local:PageOne}" /> </Tab> <Tab Title="Page Two" Icon="baseline_restaurant_p2.xml"> <ShellContent ContentTemplate="{DataTemplate local:PageTwo}" /> </Tab> </TabBar> </Shell>

Please provide some direction to implement this.

Best Answer


Sign In or Register to comment.