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

后端 未结 2 602
暗喜
暗喜 2021-01-30 11:32

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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 12:02

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

提交回复
热议问题