binds a toolbar item to its command

This commit is contained in:
Paul Schneider 2016-10-07 23:13:34 +02:00
commit 817aa39a98

View file

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