// Event for Menu Item selection, here we are going to handle navigation based
        // on user selection in menu ListView
        private void NavigationDrawerList_ItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            MasterPrestamistaItem pagina = e.SelectedItem as MasterPrestamistaItem;

            Detail      = new NavigationPage((Page)Activator.CreateInstance(pagina.TargetType));
            IsPresented = false;
        }
        public MasterPrestamistaPage()
        {
            InitializeComponent();

            ListadoMenu = new List <MasterPrestamistaItem>();
            // Añadiendo elementos del menú al listado del menú
            MasterPrestamistaItem pag1 = new MasterPrestamistaItem()
            {
                Title      = "Inicio",
                Icon       = "inicio.png",
                TargetType = typeof(HomePrestamistaPage)
            };

            ListadoMenu.Add(pag1);
            MasterPrestamistaItem pag2 = new MasterPrestamistaItem()
            {
                Title      = "Préstamos",
                Icon       = "prestamos.png",
                TargetType = typeof(HomePrestamosPage)
            };

            ListadoMenu.Add(pag2);
            MasterPrestamistaItem pag3 = new MasterPrestamistaItem()
            {
                Title      = "Pagos",
                Icon       = "pagos.png",
                TargetType = typeof(HomePagosPage)
            };

            ListadoMenu.Add(pag3);
            MasterPrestamistaItem pag4 = new MasterPrestamistaItem()
            {
                Title      = "Clientes",
                Icon       = "clientes.png",
                TargetType = typeof(HomeClientesPage)
            };

            ListadoMenu.Add(pag4);
            MasterPrestamistaItem pag5 = new MasterPrestamistaItem()
            {
                Title      = "Amortizaciones",
                Icon       = "amortizacion.png",
                TargetType = typeof(ListaUsuariosPage)
            };

            ListadoMenu.Add(pag5);
            MasterPrestamistaItem pag6 = new MasterPrestamistaItem()
            {
                Title      = "Calculadora de Préstamos",
                Icon       = "calculadora.png",
                TargetType = typeof(CalculadoraPrestamos)
            };

            ListadoMenu.Add(pag6);
            MasterPrestamistaItem pag7 = new MasterPrestamistaItem()
            {
                Title      = "Calendario",
                Icon       = "calendario.png",
                TargetType = typeof(Calendario)
            };

            ListadoMenu.Add(pag7);
            MasterPrestamistaItem pag8 = new MasterPrestamistaItem()
            {
                Title      = "Acerca de PrestApp",
                Icon       = "informacion.png",
                TargetType = typeof(AcercaDePrestApp)
            };

            ListadoMenu.Add(pag8);
            this.navigationDrawerList.ItemsSource = ListadoMenu;
            Detail = new NavigationPage((Page)Activator.CreateInstance(typeof(HomePrestamistaPage)));
            this.navigationDrawerList.ItemSelected += NavigationDrawerList_ItemSelected;
        }