Beispiel #1
0
 private void LoadData()
 {
     Task.Factory.StartNew(async() => {
         var data = await FeedServices.GetFeedDataAsync();
         Dispatcher.DispatchOnUI(() =>
         {
             ListItems.Clear();
             data.ForEach(x => {
                 ListItems.Add(new DashboardSideItemViewModel {
                     Name        = x.Name,
                     Description = x.Description,
                     ImageUrl    = x.ImageUrl,
                 });
             });
         });
     });
 }
 protected void DispatchOnUI(Action action)
 {
     dispatcher.DispatchOnUI(action);
 }