void MenuListView_ItemTapped(object sender, ItemTappedEventArgs e)
        {
            try
            {
                LoginMenuPageItem menuItem = e.Item as LoginMenuPageItem;;
                IsPresented = false;
                LoginMenuPage.MenuListView.SelectedItem = null;

                if (menuItem.pageName == "admin")
                {
                    loginpage = ((Page)Activator.CreateInstance(menuItem.pageType)) as LogInPage;
                    //loginpage.MenuIcon.GestureRecognizers.Add(menuIconTapped);
                    Detail = loginpage;
                }
                if (menuItem.pageName == "supplier")
                {
                    loginpage = ((Page)Activator.CreateInstance(menuItem.pageType)) as LogInPage;
                    //loginpage.MenuIcon.GestureRecognizers.Add(menuIconTapped);
                    Detail = loginpage;
                }

                if (menuItem.pageName == "Ev Driver")
                {
                    loginpage = ((Page)Activator.CreateInstance(menuItem.pageType)) as LogInPage;
                    //loginpage.MenuIcon.GestureRecognizers.Add(menuIconTapped);
                    Detail = loginpage;
                }
            }
            catch (Exception ex)
            {
            }
        }
 public LoginMenuController()
 {
     try
     {
         InitializeComponent();
         LoginMenuPage = new LoginMenuPage();
         loginpage     = new LogInPage();
         Master        = LoginMenuPage;
         Detail        = loginpage;
     }
     catch (Exception ex)
     {
     }
 }