tzy
2021-05-14 0fa1534827bd21d763216550d11006fc1441c6cb
HDL_ON/UI/UI0-Stan/Controls/FrameLayoutControls/FrameRowControl.cs
@@ -6,7 +6,7 @@
namespace HDL_ON.Stan
{
    /// <summary>
    /// 做成一个RowLayout型的FrameLayout
    /// 做成一个RowLayout型的FrameLayout(底层的高度为44)
    /// </summary>
    public class FrameRowControl : FrameLayoutStatuControl
    {
@@ -42,7 +42,7 @@
        #region ■ 初始化_____________________________
        /// <summary>
        /// 做成一个RowLayout型的FrameLayout
        /// 做成一个RowLayout型的FrameLayout(底层的高度为44)
        /// </summary>
        /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
        public FrameRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
@@ -66,7 +66,7 @@
                //已经添加了底线
                return btnBottomLine;
            }
            int lineWidth = this.Width - HdlControlResourse.XXLeft * 2 - LeftOffset - RightOffset;
            int lineWidth = this.Width - HdlControlResourse.XXLeft * 2 - LeftOffset + RightOffset;
            int XX = HdlControlResourse.XXLeft + LeftOffset;
            if (leftIconSize > 0)
            {
@@ -82,6 +82,26 @@
            return btnBottomLine;
        }
        /// <summary>
        /// 手动移除底线(有些时候需要这种特殊效果)
        /// </summary>
        public void RemoveBottomLine()
        {
            for (int i = 0; i < this.ChildrenCount; i++)
            {
                var myView = this.GetChildren(i);
                //这里是底线的高度和Y轴
                if (myView == null || myView.Height != HdlControlResourse.BottomLineHeight
                    || myView.Y != this.Height - HdlControlResourse.BottomLineHeight)
                {
                    continue;
                }
                //移除底线
                myView.RemoveFromParent();
                break;
            }
        }
        #endregion
        #region ■ 添加左边Caption____________________