/** * Button (heart icon) that add/remove stuff in favorite. */ private async void AddFavoriteButton_Click(object sender, RoutedEventArgs e) { Button favButton = sender as Button; await imgurApi.AddFavorites(favButton.Tag.ToString()); if (favButton.Content.ToString() == "\uEB52;") { favButton.Content = "\uEB51;"; } else { favButton.Content = "\uEB52;"; } }
/** * Button (heart icon) that add/remove stuff in favorite. */ private async void AddFavoriteButton_Click(object sender, RoutedEventArgs e) { Button favButton = (sender as Button); await imgurApi.AddFavorites(favButton.Tag.ToString()); if (favButton.Content.ToString() == "\uEB52;") { favButton.Content = "\uEB51;"; } else { favButton.Content = "\uEB52;"; } ImagesLV.ItemsSource = await imgurApi.GetAccountFavorites(); }