Windows phone 8 如何从一个页面导航到另一个页面的Hubbsection?
我的应用程序中有两页:“HubPage”和“SectionPage”。Windows phone 8 如何从一个页面导航到另一个页面的Hubbsection?,windows-phone-8,Windows Phone 8,我的应用程序中有两页:“HubPage”和“SectionPage”。 如何以编程方式从SectionPage导航到给定的Hubsection?以hub index作为参数进行导航 Frame.Navigate(typeof(HubPage), 1) 在中心页面中: protected override void OnNavigatedTo(NavigationEventArgs e) { var index = (int)e.Parameter; switch (index)
如何以编程方式从SectionPage导航到给定的Hubsection?以hub index作为参数进行导航
Frame.Navigate(typeof(HubPage), 1)
在中心页面中:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
var index = (int)e.Parameter;
switch (index)
{
case 0: YourHub.ScrollToSection(Hub1);break;
case 1: YourHub.ScrollToSection(Hub2);break;
}
}
以中心索引作为参数进行导航
Frame.Navigate(typeof(HubPage), 1)
在中心页面中:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
var index = (int)e.Parameter;
switch (index)
{
case 0: YourHub.ScrollToSection(Hub1);break;
case 1: YourHub.ScrollToSection(Hub2);break;
}
}
以中心索引作为参数进行导航
Frame.Navigate(typeof(HubPage), 1)
在中心页面中:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
var index = (int)e.Parameter;
switch (index)
{
case 0: YourHub.ScrollToSection(Hub1);break;
case 1: YourHub.ScrollToSection(Hub2);break;
}
}
以中心索引作为参数进行导航
Frame.Navigate(typeof(HubPage), 1)
在中心页面中:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
var index = (int)e.Parameter;
switch (index)
{
case 0: YourHub.ScrollToSection(Hub1);break;
case 1: YourHub.ScrollToSection(Hub2);break;
}
}