private async void FavoritesListView_ChildViewRemoved(object sender, ViewGroup.ChildViewRemovedEventArgs e) { var itemViewHolder = (e.Child.Tag as FavoriteListAdapter.ItemViewHolder); await _favoritesService.RemoveFavoriteAsync(itemViewHolder.Favorite); if (_favorites.Count == 0) { _placeHolder.StartAnimation(_placeHolderAnimation); _placeHolder.Visibility = ViewStates.Visible; } }
private void ChartLayout_ChildViewRemoved(object sender, ViewGroup.ChildViewRemovedEventArgs e) { if (e.Child.Tag.Equals(pieChartTag)) { pieChartAdded = false; } else if (e.Child.Tag.Equals(columnChartTag)) { columnChartAdded = false; } else if (e.Child.Tag.Equals(lineChartTag)) { lineChartAdded = false; } }
private void OnChildViewRemoved(object sender, ViewGroup.ChildViewRemovedEventArgs childViewRemovedEventArgs) { var boundChild = childViewRemovedEventArgs.Child as IMvxBindingContextOwner; boundChild?.ClearAllBindings(); }