private void ShrunkenListView_SelectedActivities(string name, List <Activity> activities) { ActivityListView fullListView = new ActivityListView(name, activities, true); fullListView.SelectedActivity += ListView_SelectedActivity; this.SetContent(ScrollLayout.New(fullListView)); }
private LayoutChoice_Set newListView(string title, List <Activity> activities) { ActivityListView listView = new ActivityListView(title, activities, false); listView.SelectedActivity += ListView_SelectedActivity; Shrunken_ActivityListView shrunkenListView = new Shrunken_ActivityListView(title, activities); shrunkenListView.SelectedActivities += ShrunkenListView_SelectedActivities; return(new LayoutUnion(shrunkenListView, listView)); }