public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var source = new ExpandableTableSource(TableView)
            {
                UseAnimations   = true,
                AddAnimation    = UITableViewRowAnimation.Left,
                RemoveAnimation = UITableViewRowAnimation.Right
            };

            this.AddBindings(new Dictionary <object, string>
            {
                { source, "ItemsSource KittenGroups" }
            });

            TableView.Source = source;
            TableView.ReloadData();
        }
Beispiel #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            NavigationItem.LeftBarButtonItem = EditButtonItem;

            var source = new ExpandableTableSource(TableView)
            {
                UseAnimations   = true,
                AddAnimation    = UITableViewRowAnimation.Left,
                RemoveAnimation = UITableViewRowAnimation.Right,
                IsAccordionExpandCollapseEnabled = true
            };

            this.AddBindings(new Dictionary <object, string>
            {
                { source, "ItemsSource KittenGroups" }
            });

            TableView.Source = source;
            TableView.ReloadData();
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            NavigationItem.LeftBarButtonItem = EditButtonItem;

            var source = new ExpandableTableSource(TableView)
            {
                UseAnimations = true,
                AddAnimation = UITableViewRowAnimation.Left,
                RemoveAnimation = UITableViewRowAnimation.Right,
                IsAccordionExpandCollapseEnabled = true
            };

            this.AddBindings(new Dictionary<object, string>
                {
                    {source, "ItemsSource KittenGroups"}
                });

            TableView.Source = source;
            TableView.ReloadData();
        }