private async void AbriImagem(object sender, EventArgs args)
        {
            var img    = (sender as Image);
            var Modal  = new TratarModal();
            var source = img.Source as FileImageSource;

            //await Modal.AbrirModal(new VisualizarImagens() { imagemSource = source.File });
            await Modal.AbrirModal(new VisualizarImagens()
            {
                imagemSourceUri = img.Source
            });
        }
Exemplo n.º 2
0
        private async void btnEntrar_Clicked(object sender, EventArgs e)
        {
            if (lblInvalido.IsVisible == true)
            {
                var Modal = new TratarModal();
                await Modal.AbrirModal(new ModalDeCarregamento()
                {
                    Texto = "Entrando..."
                });

                await App.Current.MainPage.Navigation.PushModalAsync(new Home());

                //App.Current.MainPage = new NavigationPage(new Home()) { BarBackgroundColor = Color.DimGray, BarTextColor = Color.White };
                await Modal.FecharModal();
            }

            lblInvalido.IsVisible = true;
        }