コード例 #1
0
 public async Task PopulateTracks(AlbumItem album)
 {
     try
     {
         var tracks = musicDatabase.LoadTracksFromAlbumId(album.Id);
         await DispatchHelper.InvokeAsync(CoreDispatcherPriority.Normal, () =>
         {
             album.Tracks = tracks;
         });
     }
     catch (Exception e)
     {
         LogHelper.Log(StringsHelper.ExceptionToString(e));
     }
 }