public SampleDataSource() { foreach (deity deity in App.allDeities) { var groupDeity = new SampleDataGroup(deity.DeityID, deity.DeityName, "Shlokas on " + deity.DeityName, deity.DeityImage, ""); foreach (shlokas shloka in deity.ShlokasOfDeity) { var itemShloka = new SampleDataItem(deity.DeityID + "-" + shloka.ShlokaID, shloka.ShlokaName, "", deity.DeityImage, shloka.ShlokaOriginal, shloka.ShlokaEnglish, groupDeity); groupDeity.Items.Add(itemShloka); } this.AllGroups.Add(groupDeity); } }