private void OnRemovePhotoFromFavourite(object sender, RemoveFavouriteEventArgs e)
        {
            Photo photo = PhotoCache[e.PhotoId];
            photo.IsFavourite = false;

            if (FavouriteList.Contains(photo))
                FavouriteList.Remove(photo);

            TotalFavouritePhotosCount--;

            var evt = new PhotoRemovedFromFavouriteEventArgs();
            evt.PhotoId = photo.ResourceId;
            PhotoRemovedFromFavourite.DispatchEvent(this, evt);
        }
        private void OnRemovedFromFavourite(object sender, PhotoRemovedFromFavouriteEventArgs e)
        {
            Dispatcher.BeginInvoke(() =>
            {
                if (e.PhotoId != PhotoSource.ResourceId)
                    return;

                // Favourite icon
                if (PhotoSource.IsFavourite)
                    FavIconView.Visibility = Visibility.Visible;
                else
                    FavIconView.Visibility = Visibility.Collapsed;
            });
        }
        private void OnRemovedFromFavourite(object sender, PhotoRemovedFromFavouriteEventArgs e)
        {
            Dispatcher.BeginInvoke(() =>
            {
                if (e.PhotoId != PhotoSource.ResourceId)
                    return;

                ProgressView.Visibility = Visibility.Collapsed;
                StatusLabel.Text = AppResources.DetailPageRemovedFavText;
                doneButton.IsEnabled = true;
            });
        }