Navigation Windows通用应用程序HubSection更改页.BottomAppBar
我正在开发WP 8.1应用程序,正在使用一个基于用户正在查看的Hub部分的Now。我想更改Page.BottomAppBar。我该怎么办 首先使用hubsection viewchanged方法Navigation Windows通用应用程序HubSection更改页.BottomAppBar,navigation,win-universal-app,Navigation,Win Universal App,我正在开发WP 8.1应用程序,正在使用一个基于用户正在查看的Hub部分的Now。我想更改Page.BottomAppBar。我该怎么办 首先使用hubsection viewchanged方法 hubname_SectionsInViewChanged(object sender, SectionsInViewChangedEventArgs e) { //Get current hub section var section = HubPlanListsTeams.S
hubname_SectionsInViewChanged(object sender, SectionsInViewChangedEventArgs e)
{
//Get current hub section
var section = HubPlanListsTeams.SectionsInView[0];
var hubname = section.Name.ToString();
if (hubname.Equals("Section1"))
{
// Set programatically bottombar for section1 hubsection
}
else if(hubname.Equals("Section2"))
{
//Set programatically bottombar for Section2 hubsection
}
}