public override void AddTracks() { //Popup the Playlist Chooser. PlaylistChooser chooser = new PlaylistChooser(); chooser.Placement = PlacementMode.MousePoint; chooser.Closed += OnPlaylistChooserClosed; chooser.IsOpen = true; }
public void OnPlaylistChooserClosed(object sender, EventArgs e) { PlaylistChooser chooser = (PlaylistChooser)sender; if (chooser.SelectedPlaylist != null) { AlbumTrackList albumTrackList = SpotifyClientService.Client.GetAlbumTracks(_newReleaseItem.Album); SpotifyClientService.Client.AddTracksToPlaylist(chooser.SelectedPlaylist, albumTrackList.Tracks); } }