Example #1
0
        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);
        }
Example #2
0
 private void OnParentTapped(ParentItemModel item)
 {
     Application.Current.MainPage.DisplayAlert("Eurika!!!", "You tapped " + item.Name, "Cancel");
 }