I am using NavigationDrawer to go to Page1
That is working when i select Profile it is going to Page1, when i go back to mainpage en select Profile again nothing is happening because it is already selected.
Have to select another item en then select Profile again then i am going to Page1 .
What do i at or change when go back from Page1 to menu no item is selected ?
namespace GettingStarted
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
hamburgerButton.Image = (FileImageSource)ImageSource.FromFile("hamburgericon.png");
List<string> list = new List<string>();
list.Add("Home");
list.Add("Profile");
list.Add("Inbox");
list.Add("Outbox");
list.Add("Sent");
list.Add("Draft");
listView.ItemsSource = list;
}
void hamburgerButton_Clicked(object sender, EventArgs e)
{
navigationDrawer.ToggleDrawer();
}
private void listView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
{
if (e.SelectedItem.ToString() == "Profile")
{
Navigation.PushAsync(new Page1());
headerLabel.Text = "Menu";
}
navigationDrawer.ToggleDrawer();
}
}
}