| | |
| | | {
|
| | | this.rowSpace = Application.GetRealHeight(i_rowSpace);
|
| | | this.VerticalScrollBarEnabled = false;
|
| | | #if iOS
|
| | | //自动偏移取消
|
| | | if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
|
| | | {
|
| | | (this.uiView as UIKit.UIScrollView).ContentInsetAdjustmentBehavior = UIKit.UIScrollViewContentInsetAdjustmentBehavior.Never;
|
| | | }
|
| | | #endif
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | if (this.maxHeight != -1)
|
| | | {
|
| | | this.Height = this.maxHeight;
|
| | | #if iOS
|
| | | this.ReLocation();
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | //还原为最大高度
|
| | | this.Height = maxHeight;
|
| | | #if iOS
|
| | | this.ReLocation();
|
| | | #endif
|
| | | }
|
| | | return;
|
| | | }
|
| | |
| | | frameBackTemp = null;
|
| | | //缩小控件高度
|
| | | this.Height = realHeight;
|
| | | #if iOS
|
| | | this.ReLocation();
|
| | | #endif
|
| | | }
|
| | | else if (addSpace == true && bottomSpace > 0 && realHeight > this.maxHeight)
|
| | | {
|
| | |
| | | {
|
| | | //还原为最大高度
|
| | | this.Height = maxHeight;
|
| | | #if iOS
|
| | | this.ReLocation();
|
| | | #endif
|
| | | }
|
| | | return;
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 一般方法___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 控件移除
|
| | | /// </summary>
|
| | | public override void RemoveFromParent()
|
| | | {
|
| | | if (this.Parent != null)
|
| | | {
|
| | | base.RemoveFromParent();
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// ☆☆移除全部控件☆☆
|
| | | /// </summary>
|
| | | public override void RemoveAll()
|
| | | {
|
| | | if (this.Parent != null)
|
| | | {
|
| | | base.RemoveAll();
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|