Example #1
0
        public TestPage()
        {
            var list = new CollapsibleListContainer();

            var group1 = new CollapsibleList("Pit Scouting Data");

            group1.addData(new PitData()
            {
                dataHeader = "Data Header", data = "data"
            });
            group1.addData(new PitData()
            {
                dataHeader = "Data Header", data = "data"
            });
            group1.addData(new PitData()
            {
                dataHeader = "Data Header", data = "data"
            });

            var group2 = new CollapsibleList("Match Scouting Data");

            group2.addData(new PitData()
            {
                dataHeader = "Data Header", data = "data"
            });
            group2.addData(new PitData()
            {
                dataHeader = "Data Header", data = "data"
            });
            group2.addData(new PitData()
            {
                dataHeader = "Data Header", data = "data"
            });


            list.AddList(group1);
            list.AddList(group2);

            var navigationBtns = new NavigationButtons();

            layoutTest.Children.Add(list, 0, 2, 0, 1);
            layoutTest.Children.Add(navigationBtns, 0, 2, 1, 2);

            Content = layoutTest;
        }
 public void AddList(CollapsibleList list)
 {
     Children.Add(list);
     list.tHeight = totalHeight;
 }