In my Items page (of a MAsterDetail forms), my app have a set of button to navigate each second page. How can opne the second page having access to the lateral menu by burger icon?
my code to navigate to second page is
Application.Current.MainPage = new NavigationPage(new MySecondPage());
async void ButtonClicked(object sender, EventArgs e)
{
Button btn = sender as Button;
int btnId = int.Parse((sender as Button).CommandParameter.ToString());
switch (btnId)
{
case (1):
Application.Current.MainPage = new NavigationPage(new MySecondPage());
break;
case (2):
// button 2 action
case (3):
// button 3 action
break;
}
}
Thanks in advance.