binds a toolbar item to its command

main
Paul Schneider 9 years ago
parent b15b43ebdf
commit f2d5e92091
1 changed files with 4 additions and 2 deletions

@ -169,7 +169,10 @@ namespace BookAStar
ToolbarItem tiSetts = new ToolbarItem() ToolbarItem tiSetts = new ToolbarItem()
{ {
Text = "Paramètres", Text = "Paramètres",
Icon = "ic_corp_icon.png" Icon = "ic_corp_icon.png",
Command = new Command(
() => { NavigationService.NavigateTo<AccountChooserPage>(); }
)
}; };
ToolbarItem tiHome = new ToolbarItem() ToolbarItem tiHome = new ToolbarItem()
@ -179,7 +182,6 @@ namespace BookAStar
}; };
masterDetail.ToolbarItems.Add(tiHome); masterDetail.ToolbarItems.Add(tiHome);
masterDetail.ToolbarItems.Add(tiSetts); masterDetail.ToolbarItems.Add(tiSetts);
this.MainPage = masterDetail; this.MainPage = masterDetail;
NavigationService = new NavigationService(masterDetail.Detail.Navigation); NavigationService = new NavigationService(masterDetail.Detail.Navigation);
} }

Loading…