How show first tab #88
rafleboss47
started this conversation in
General
Replies: 1 comment
-
Set the SelectedViewModelIndex to the index you want |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've just implemented tabs in my project.
How do I pre-select the first TAB?
By default, no tabs are selected.
I use the following system:
`<tabs:TabHostView x:Name="TabHost"
Grid.Row="1"
Margin="0"
BackgroundColor="Black"
SelectedIndex="{Binding Source={x:Reference Switcher}, Path=SelectedIndex, Mode=TwoWay}"
TabType="Fixed"
>
<tabs:TabHostView.Tabs >
<tabs:UnderlinedTabItem IsSelected="True" IsSelectable="True" x:Name="onglet1" Label="MMM" SelectedTabColor="White" UnselectedLabelColor="Gray"/>
<tabs:UnderlinedTabItem Label="YYYY" SelectedTabColor="White" UnselectedLabelColor="Gray"/>
</tabs:TabHostView.Tabs>
</tabs:TabHostView>
</tabs:Shadows>
`
Beta Was this translation helpful? Give feedback.
All reactions