public void PrintCurriculum() { var cur = Attendance.GetCurriculum(); string[] classes = new string[cur.Length]; for (int i = 0; i < cur.Length; i++) { classes[i] = parseName(cur[i][0]); } for (int i = 0; i < cur.Length; i++) { StackLayout sl = new StackLayout(); for (int j = 1; j < cur[i].Length; j++) { sl.Children.Add(new Label { Text = (j) + ". " + cur[i][j] }); } Accordion.CustomControls.Accordion newAccordion = new Accordion.CustomControls.Accordion() { Title = classes[i], AccordionContentView = sl, IndicatorView = new Label() { Text = "V ", FontSize = 23 } }; curGrid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); curGrid.Children.Add(newAccordion, 0, i); } }