private ParentItemModel CreateParentModel(string name) { var parent = new ParentItemModel { Name = name, Description = name + " Description" }; var children = new List <ChildItemModel> { CreateChildModel(name + "_A"), CreateChildModel(name + "_B"), CreateChildModel(name + "_C") }; parent.Children = new ObservableCollection <ChildItemModel>(children); return(parent); }
private void OnParentTapped(ParentItemModel item) { Application.Current.MainPage.DisplayAlert("Eurika!!!", "You tapped " + item.Name, "Cancel"); }