how to navigate the particular pivot item in windows

妖精的绣舞 提交于 2020-01-17 04:13:08

问题


In my windows application, I am using 4 pivot items for example cash,change password, items,profile. whenever i click the any pivot item the page navigate to profile pivot item only. But i need to go to particular pivot item only. Please any one help me out.

code:

private void changepassword_Click(object sender, RoutedEventArgs e)
        {
            //Frame.Navigate(typeof(profile), uuid);
            Frame.Navigate(typeof(profile));
        }

回答1:


Navigate with pivot tab index as parameter

Frame.Navigate(typeof(profile), 1)

In your profile page:

protected override void OnNavigatedTo(NavigationEventArgs e)
{
    MainPivot.SelectedIndex = (int) e.Parameter;
}


来源:https://stackoverflow.com/questions/29300984/how-to-navigate-the-particular-pivot-item-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!