private async void Load(string hrmlUrl) { List <ProgramTVModel> list = await ProgramTVParser.Parse(hrmlUrl); foreach (var i in list) { Items.Add(i); } }
private async void Load(string hrmlUrl) { await Windows.UI.Core.CoreWindow.GetForCurrentThread().Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async() => { List <ProgramTVModel> list = await ProgramTVParser.Parse(hrmlUrl); foreach (var i in list) { Items.Add(i); } }); }