Hi Blainer,
Thank you for your update,
Query#1: Navigating continuously will increase the items of the TabNavigationControl non-stop;
You can get the TabNavigationControl by passing child TabNavigationItem using Find Ancestor of VisualUtils anywhere in the application. So you can move the codes for add new TabNavigationItem from SelectionChanged and execute the same on demand.
Query#2: How about the "back" navigation -- how can I go back the previous page? Shall I have to detect my current page's index to TabNavigationControl's items then minus 1, then navigate? If that's so, how can it be done "properly"?
Yes, you can go back to the previous page by decrementing the SelectedIndex as demonstrated in our last updated sample that shown in the below Code example:
TabNavigationControl tabnavigation = (TabNavigationControl)VisualUtils.FindAncestor(sender as Visual,typeof(TabNavigationControl)); if (tabnavigation != null && tabnavigation.SelectedIndex > 0) tabnavigation.SelectedIndex = tabnavigation.SelectedIndex - 1; |
Please let us know if you have any other concerns,
Regards,
Vijayalakshmi V.R.