I have a tabbedviewnavigator application where I have 5 tabs in it. So, the first tab contains the first view of the application, e.g. HomeView. Inside this view, I have a button where upon clicking it, it will push to the second view which is sitting in the second tab.
How do I change the selected tab index upon clicking the button? Because right now the selected tab is till on the first tab. Please help.
Use the SelectedIndex function in the TabbedViewNavigator in the button click handler. myTabbedViewNavigator.selectedIndex = 2;
Ok. I was able to set the tab index now. But, the view stack is still belong to the first tab as I am using the pushView function.
When you set selected index of 2nd tab, try to set focus on of any control in 2nd tab. It might happen that if you don't set focus on of any control tab may not change.