You must await the Loading method since its return type is Task<string[]> and not string[]:
async void MainPage_Loaded(object sender, RoutedEventArgs e)
{
listview.ItemsSource = await Loading("1");
}
Please remember to mark all helpful posts as answer to close your threads and then start a new thread if you have a new question. Please don't ask several questions in the same thread.
No comments:
Post a Comment