| | |
| | | get
|
| | | {
|
| | | int count = base.ChildrenCount;
|
| | | if (frameBackTemp != null)
|
| | | if (frameBackTemp != null && frameBackTemp.Parent != null)
|
| | | {
|
| | | count--;
|
| | | }
|
| | |
| | | /// <param name="i_rowSpace">行之间的间距(这个值是与行控件绑定一起使用的)</param>
|
| | | public VerticalListControl(int i_rowSpace = 0)
|
| | | {
|
| | | rowSpace = Application.GetRealHeight(i_rowSpace);
|
| | | this.rowSpace = Application.GetRealHeight(i_rowSpace);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// <param name="addSpace">当真实高度超过原有高度时,是否添加空白</param>
|
| | | public void AdjustRealHeight(int bottomSpace, bool addSpace = true)
|
| | | {
|
| | | int count = frameBackTemp == null ? this.ChildrenCount : this.ChildrenCount - 1;
|
| | | int count = this.ChildrenCount;
|
| | | if (count <= 0)
|
| | | {
|
| | | frameBackTemp?.RemoveFromParent();
|