Пример #1
0
        private async void SongClickExecute(ItemClickEventArgs e)
        {
            var song = e.ClickedItem as Song;

            await _service.ClearQueueAsync();

            foreach (var queueSong in _service.Songs)
            {
                await _service.AddToQueueAsync(queueSong);
            }

#if WINDOWS_PHONE_APP
            _audioPlayer.PlaySong(_service.PlaybackQueue[_service.Songs.IndexOf(song)]);
#endif
        }