private void SetUpHiddenRows() { for (int index = 0; index < hiddenRows.Length; index++) { var row = hiddenRows[index]; row.Font = UIFont.PreferredCaption2; row.Text = $"Hidden row {index + 1}"; } StackView.AddRows(hiddenRows); StackView.HideRows(hiddenRows); var rowInset = new UIEdgeInsets( top: StackView.RowInset.Top, left: StackView.RowInset.Left * 2f, bottom: StackView.RowInset.Bottom, right: StackView.RowInset.Right); var separatorInset = new UIEdgeInsets( top: 0, left: StackView.SeparatorInset.Left * 2f, bottom: 0, right: 0); StackView.SetInset(hiddenRows, inset: rowInset); StackView.SetSeperatorInset(hiddenRows.SkipLast(1).ToArray(), inset: separatorInset); }