/// <summary> /// Does the initial data load of the table /// </summary> public void LoadTable() { AssociateTableView = new UITableView(new CoreGraphics.CGRect(0, 0, TableContainerView.Bounds.Width, TableContainerView.Bounds.Height)); AssociateTableView.RegisterClassForCellReuse(typeof(MainCustomCell), nameof(MainCustomCell)); AssociateTableView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; AssociateTableView.CellLayoutMarginsFollowReadableWidth = false; //generate our repository instance to access our list of users. //MainTableViewTableSource tableSource = new MainTableViewTableSource(list); AssociateTableView.TranslatesAutoresizingMaskIntoConstraints = false; var parentMargins = View.LayoutMarginsGuide; //AssociateTableView.Source = tableSource; TableContainerView.AddSubview(AssociateTableView); _currentTableViewController = _vm.UserCollection.GetController(CreatePersonCell, BindCellDelegate); _currentTableViewController.TableView = AssociateTableView; _currentTableViewController.GetViewForHeaderDelegate = MainCustomCell.GetViewForHeader; _currentTableViewController.GetHeightForHeaderDelegate = MainCustomCell.GetHeightForHeader; _vm.LoadUserCollection(); }