Пример #1
0
        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;
            }
        }