Ejemplo n.º 1
0
        private async System.Threading.Tasks.Task AddUsers(UserEditViewModel userEditViewModel)
        {
            var page = new UserEditPage();

            page.BindingContext = userEditViewModel;
            await Navigation.PushAsync(page);

            NavigationPage.SetHasBackButton(page, true);
        }
Ejemplo n.º 2
0
        async void Handle_ItemTapped(object sender, ItemTappedEventArgs e)
        {
            if (e.Item == null)
            {
                return;
            }

            //await DisplayAlert("Item Tapped", "An item was tapped.", "OK");
            var page = new UserEditPage();
            await Navigation.PushAsync(page);

            NavigationPage.SetHasBackButton(page, true);
            await((UserEditViewModel)page.BindingContext).Load(((UserView)e.Item).UserId);
            //Deselect Item
            ((ListView)sender).SelectedItem = null;
        }