Hi TruongCP,
We have validated the reported issue and we would like to let you know that after triggering the TabItemTapped event, the selection has been changed and content also updated for the next tab, so when you return the SelectedIndex before the selection has been changed it returns the previous value. If you need to use TabItemTapped to get the index of the current selected item you can use the code below.
Code Snippet:
|
private void tabView_TabItemTapped(object sender, TabItemTappedEventArgs e)
{
var tabIndex = tabView.Items.IndexOf(e.TabItem);
} |
Please let us know, if you have any other concerns.
Regards,
Sakthivel P.