HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-12-30 3dcbd186c42c598c0c08d1cd37034cf2baa09e54
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs
@@ -192,7 +192,7 @@
            var btnRight = new IconViewControl(58);
            btnRight.Gravity = Gravity.CenterVertical;
            btnRight.X =this.Width - btnRight.IconSize - ControlCommonResourse.XXLeft + RightOffset;
            btnRight.UnSelectedImagePath = "Item/Next.png";
            btnRight.UnSelectedImagePath = "Item/RightNext.png";
            this.AddChidren(btnRight, ChidrenBindMode.BindEventOnly);
            if (chidrenYaxis != 0)
@@ -268,7 +268,7 @@
            {
                i_width = Application.GetRealWidth(i_width);
            }
            var btnContr = AddMostRightView(i_text, i_width, ControlCommonResourse.NormalControlHeight, false);
            var btnContr = AddMostRightView(i_text, i_width, this.Height, false);
            this.AddChidren(btnContr, ChidrenBindMode.BindEventOnly);
            if (chidrenYaxis != 0)
            {
@@ -295,7 +295,7 @@
            }
            var btnContr = new NormalViewControl(i_width, i_height, false);
            btnContr.X = this.Width - ControlCommonResourse.XXLeft - i_width - rightIconSize + RightOffset;
            btnContr.Height = this.Height;
            btnContr.Height = i_height;
            btnContr.TextAlignment = TextAlignment.CenterRight;
            btnContr.TextColor = UserCenterColor.Current.TextGrayColor1;
            btnContr.Text = i_text;
@@ -304,5 +304,56 @@
        }
        #endregion
        #region ■ 添加上部的显示文本_________________
        /// <summary>
        /// 添加上部的显示文本(如果有图标,则先添加图标,再添加文本)
        /// </summary>
        /// <param name="i_caption">内容</param>
        /// <param name="i_width">宽度</param>
        /// <param name="real">是否计算真实值</param>
        /// <returns></returns>
        public NormalViewControl AddTopView(string i_caption, int i_width, bool real = true)
        {
            if (real == true)
            {
                i_width = Application.GetRealWidth(i_width);
            }
            var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(60), false);
            contr.TextSize = 15;
            contr.Y = Application.GetRealHeight(12) + this.chidrenYaxis;
            this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
            return contr;
        }
        #endregion
        #region ■ 添加下部的显示文本_________________
        /// <summary>
        /// 添加下部的显示文本(如果有图标,则先添加图标,再添加文本)
        /// </summary>
        /// <param name="i_caption">内容</param>
        /// <param name="i_width">宽度</param>
        /// <param name="real">是否计算真实值</param>
        /// <returns></returns>
        public NormalViewControl AddBottomView(string i_caption, int i_width, bool real = true)
        {
            if (real == true)
            {
                i_width = Application.GetRealWidth(i_width);
            }
            var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(50), false);
            contr.Y = Application.GetRealHeight(72) + this.chidrenYaxis;
            contr.TextSize = 12;
            contr.TextColor = UserCenterColor.Current.TextGrayColor1;
            this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
            return contr;
        }
        #endregion
    }
}