コード例 #1
0
        /// <summary>
        /// Clear Playlist
        /// </summary>
        /// <param name="response">Playlist Response</param>
        private async void ClearPlaylist(PlaylistResponse response)
        {
            var dialog = new ClearPlaylistDialog(response);
            var result = await dialog.ShowAsync();

            if (result == ContentDialogResult.Primary &&
                dialog.ClearPlaylist.Result.IsSuccess)
            {
                PlaylistItems.Refresh();
            }
        }