Hi everyone !
I am using the Sharpnado.Presentation.Forms nuget package. They have very beautiful tab structures. Everything works fine, but the first tab does not appear automatically when the page is first displayed. I need to tapped the tab for the **ContentView ** inside the tab to appear.
How can i solve It?
<tabs:TabHostView x:Name="TabHost" Grid.Row="1" TabType="Scrollable" BackgroundColor="White" SelectedIndex="{Binding Source={x:Reference Switcher}, Path=SelectedIndex, Mode=TwoWay}" ShadowType="Bottom"> <tabs:TabHostView.Tabs> <tabs:UnderlinedTabItem Style="{StaticResource TabStyle}" IsSelected="True" Label="General"/> <tabs:UnderlinedTabItem Style="{StaticResource TabStyle}" Label="Contacts" /> <tabs:UnderlinedTabItem Style="{StaticResource TabStyle}" Label="Team" /> <tabs:UnderlinedTabItem Style="{StaticResource TabStyle}" Label="Billing Info" /> <tabs:UnderlinedTabItem Style="{StaticResource TabStyle}" Label="Other" /> </tabs:TabHostView.Tabs> </tabs:TabHostView> <ScrollView Grid.Row="2" Margin="0,3,0,0"> <tabs:ViewSwitcher x:Name="Switcher" SelectedIndex="{Binding SelectedViewModelIndex, Mode=TwoWay}" Animate="True"> <details:ExpenseDetailPage BindingContext="ExpenseDetailPage" Animate="True"/> <details:ExpenseDetailPage BindingContext="ExpenseDetailPage" Animate="True"/> <details:ExpenseDetailPage BindingContext="ExpenseDetailPage" Animate="True"/> <details:ExpenseDetailPage BindingContext="ExpenseDetailPage" Animate="True"/> </tabs:ViewSwitcher> </ScrollView>
Thanks in advance !