黄学彪
2020-09-18 c7df85937f73fb347ee0b19e9c052d2d00a6df6c
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalListRefreshControl.cs
old mode 100644 new mode 100755
@@ -50,13 +50,13 @@
        public VerticalListRefreshControl(int i_rowSpace = 0)
        {
            this.rowSpace = Application.GetRealHeight(i_rowSpace);
            this.VerticalScrollBarEnabled = false;
            this.VerticalScrollBarEnabled = false;
#if iOS
            //自动偏移取消
            if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
            {
                (this.uiView as UIKit.UIScrollView).ContentInsetAdjustmentBehavior = UIKit.UIScrollViewContentInsetAdjustmentBehavior.Never;
            }
            //自动偏移取消
            if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
            {
                (this.uiView as UIKit.UIScrollView).ContentInsetAdjustmentBehavior = UIKit.UIScrollViewContentInsetAdjustmentBehavior.Never;
            }
#endif
        }
@@ -186,5 +186,31 @@
        }
        #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
    }
}