public async void Init(ListBox display) { _list.Clear(); IList <UserActivitySessionHistoryItem> list = await _channel.GetRecentUserActivitiesAsync(maxUniqueActivities : 25); foreach (UserActivitySessionHistoryItem item in list) { _list.Add(new TimelineItem() { Id = item.UserActivity.ActivityId, Title = item.UserActivity.VisualElements.DisplayText, Body = item.UserActivity.VisualElements.Description, Colour = item.UserActivity.VisualElements.BackgroundColor }); } display.ItemsSource = _list; }