private void OnAddPhotoAsFavourite(object sender, AddFavouriteEventArgs e)
        {
            Photo photo = PhotoCache[e.PhotoId];
            photo.IsFavourite = true;

            if (FavouriteList.Contains(photo))
                FavouriteList.Insert(0, photo);

            TotalFavouritePhotosCount++;

            var evt = new PhotoAddedAsFavouriteEventArgs();
            evt.PhotoId = photo.ResourceId;
            PhotoAddedAsFavourite.DispatchEvent(this, evt);
        }
        private void OnAddedAsFavourite(object sender, PhotoAddedAsFavouriteEventArgs 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 OnAddedAsFavourite(object sender, PhotoAddedAsFavouriteEventArgs e)
        {
            Dispatcher.BeginInvoke(() =>
            {
                if (e.PhotoId != PhotoSource.ResourceId)
                    return;

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