Example #1
0
        private void GridView_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (AlbumsGridView.SelectionMode != ListViewSelectionMode.None)
            {
                return;
            }
            AlbumView album = (AlbumView)e.ClickedItem;

            if (album.Songs == null)
            {
                album.SetSongs(AlbumPage.SearchAlbumSongs(album.Name, album.Artist));
            }
            Frame.Navigate(typeof(AlbumPage), e.ClickedItem);
        }
Example #2
0
        private async void LoadThumbnail(AlbumView album)
        {
            string before = album.ThumbnailSource;

            if (album.Songs == null)
            {
                album.SetSongs(AlbumPage.SearchAlbumSongs(album.Name, album.Artist));
            }
            await album.SetThumbnailAsync();

            if (album.ThumbnailSource != before && AlbumInfoList.FirstOrDefault(a => a.Equals(album)) is AlbumInfo albumInfo)
            {
                albumInfo.Thumbnail = album.ThumbnailSource;
            }
        }