Beispiel #1
0
        private async System.Threading.Tasks.Task AddEntitys(EntityEditViewModel entityEditViewModel)
        {
            var page = new EntityEditPage();

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

            NavigationPage.SetHasBackButton(page, true);
        }
Beispiel #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 EntityEditPage();
            await Navigation.PushAsync(page);

            NavigationPage.SetHasBackButton(page, true);
            await((EntityEditViewModel)page.BindingContext).Load(((EntityView)e.Item).EntityId);
            //Deselect Item
            ((ListView)sender).SelectedItem = null;
        }