private async void Button_Click(object sender, RoutedEventArgs e) { // Add to favorite await ExClient.AddToFavorite(GalleryViewModel.Gallery.Gid, GalleryViewModel.Gallery.Token, FavoriteCatalogComboBox.SelectedIndex, FavoriteNoteTextBox.Text); GalleryViewModel.IsFavorited = true; FavoriteButton.Flyout.Hide(); }