Page PageForOption (OptionItem option, object parameters) { if (option.Title == "Groups" && parameters == null) { //ShowGroupDialogAsync (); return new ContentPage (); } if (option.Title == "Groups") return new ContentPage (); throw new NotImplementedException ("Unknown menu option: " + option.Title); }
public void NavigateTo (OptionItem option, object parameters) { if (previousItem != null) previousItem.Selected = false; option.Selected = true; previousItem = option; Title = option.Title; //Content = PageForOption (option, parameters); //IsPresented = false; }