“await” doesn't wait for the completion of call

后端 未结 2 1654
暖寄归人
暖寄归人 2021-01-30 11:09

I\'m building a Metro App.

In the MainPage.xaml.cs, I instantiate Album as follows:

Album album = new Album(2012);  //With the album ID as its parameter.
L         


        
2条回答
  •  灰色年华
    2021-01-30 12:06

    Make Songs property return Task> and await at ListView1.ItemsSource = await album.Songs;

提交回复
热议问题