private void AddToPlaylistExecute(BaseEntry baseEntry)
        {
            List <Song> songs;

            if (baseEntry is Artist)
            {
                songs = (baseEntry as Artist).Songs.ToList();
            }
            else
            {
                songs = (baseEntry as Album).Songs.ToList();
            }

            CollectionHelper.AddToPlaylistDialog(songs);
        }
        public CollectionArtistPage()
        {
            InitializeComponent();
            Bar               = BottomAppBar;
            BottomAppBar      = null;
            _bioPivotItem     = BioPivot;
            _similarPivotItem = SimilarPivot;

            var playButton = new AppBarButton
            {
                Icon  = new SymbolIcon(Symbol.Play),
                Label = "play"
            };

            playButton.Click += async(o, p) =>
            {
                var songs = SongList.SelectedItems.Select(m => m as Song).ToList();
                if (songs.Count == 0)
                {
                    return;
                }

                SongList.SelectionMode = ListViewSelectionMode.None;
                await CollectionHelper.PlaySongsAsync(songs, forceClear : true);
            };
            var enqueueButton = new AppBarButton
            {
                Icon  = new SymbolIcon(Symbol.Add),
                Label = "enqueue"
            };

            enqueueButton.Click += async(o, p) =>
            {
                var songs = SongList.SelectedItems.Select(m => m as Song).ToList();
                if (songs.Count == 0)
                {
                    return;
                }

                SongList.SelectionMode = ListViewSelectionMode.None;
                await CollectionHelper.AddToQueueAsync(songs);
            };

            _selectionModeCommands = new List <ICommandBarElement>
            {
                enqueueButton,
                playButton
            };

            var addToButton = new AppBarButton
            {
                Icon  = new SymbolIcon(Symbol.Play),
                Label = "add to playlist..."
            };

            addToButton.Click += (o, p) =>
            {
                var songs = SongList.SelectedItems.Select(m => m as Song).ToList();
                if (songs.Count == 0)
                {
                    return;
                }

                SongList.SelectionMode = ListViewSelectionMode.None;
                CollectionHelper.AddToPlaylistDialog(songs);
            };
            var deleteButton = new AppBarButton
            {
                Icon  = new SymbolIcon(Symbol.Add),
                Label = "delete"
            };

            deleteButton.Click += async(o, p) =>
            {
                var tasks =
                    SongList.SelectedItems.Select(m => CollectionHelper.DeleteEntryAsync(m as Song, false)).ToList();
                if (tasks.Count == 0)
                {
                    return;
                }

                SongList.SelectionMode = ListViewSelectionMode.None;
                await Task.WhenAll(tasks);
            };
            _selectionSecondaryModeCommands = new List <ICommandBarElement>
            {
                addToButton,
                deleteButton
            };
        }