From b78a4d0ca90416d37fcbaf5e54b00f7eaab53919 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 14 十月 2019 17:03:58 +0800
Subject: [PATCH] 2019-10-14-2
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs | 61 ++++++++++++++++++++++++++++--
1 files changed, 57 insertions(+), 4 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs
index 3276775..167c1cc 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs
@@ -50,7 +50,8 @@
#region 鈻� 娣诲姞搴曠嚎___________________________
/// <summary>
- /// 娣诲姞搴曠嚎(濡傛灉宸﹁竟鏈夊浘鏍囷紝鍒欏厛娣诲姞鍥炬爣锛屽啀娣诲姞搴曠嚎)
+ /// <para>娣诲姞搴曠嚎(濡傛灉宸﹁竟鏈夊浘鏍囷紝鍒欏厛娣诲姞鍥炬爣锛屽啀娣诲姞搴曠嚎)</para>
+ /// <para>瀹冪殑闀垮害涓猴細褰撳墠鎺т欢瀹藉害-宸﹀彸鍥哄畾闂磋窛-宸﹁竟鍥剧墖瀹藉害(濡傛灉鏈�)-鍙宠竟鐨勫亸绉婚噺</para>
/// </summary>
public NormalViewControl AddBottomLine()
{
@@ -112,13 +113,47 @@
{
XX += this.leftIconSize + Application.GetRealWidth(35);
}
- var btnCaption = new NormalViewControl(i_width, real);
+ var btnCaption = new NormalViewControl(i_width, i_height, real);
btnCaption.X = XX;
- btnCaption.Height = i_height;
btnCaption.Text = i_caption;
return btnCaption;
+ }
+
+ #endregion
+
+ #region 鈻� 娣诲姞宸﹁竟杈撳叆妗哶____________________
+
+ /// <summary>
+ /// 娣诲姞宸﹁竟杈撳叆妗�(濡傛灉鏈夊浘鏍囷紝鍒欏厛娣诲姞鍥炬爣锛屽啀娣诲姞杈撳叆妗�)
+ /// </summary>
+ /// <param name="i_txtValue">鍒濆鍐呭</param>
+ /// <param name="i_width">瀹藉害</param>
+ /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param>
+ /// <returns></returns>
+ public TextInputControl AddLeftInput(string i_txtValue, int i_width, bool real = true)
+ {
+ if (real == true)
+ {
+ i_width = Application.GetRealWidth(i_width);
+ }
+ int XX = ControlCommonResourse.XXLeft + LeftOffset;
+ if (this.leftIconSize > 0)
+ {
+ XX += this.leftIconSize + Application.GetRealWidth(35);
+ }
+ var contr = new TextInputControl(i_width, this.Height, false);
+ contr.Text = i_txtValue;
+ contr.X = XX;
+
+ this.AddChidren(contr, ChidrenBindMode.NotBind);
+ if (chidrenYaxis != 0)
+ {
+ contr.Y += chidrenYaxis;
+ }
+
+ return contr;
}
#endregion
@@ -152,7 +187,7 @@
/// <summary>
/// 娣诲姞鍚戝彸鐨勫浘鏍�
/// </summary>
- public IconViewControl AddRightIconControl()
+ public IconViewControl AddRightArrow()
{
var btnRight = new IconViewControl(58);
btnRight.Gravity = Gravity.CenterVertical;
@@ -199,6 +234,24 @@
#endregion
+ #region 鈻� 娣诲姞鍙宠竟鐨勫紑鍏冲浘鏍嘷________________
+
+ /// <summary>
+ /// 娣诲姞鍙宠竟鐨勫紑鍏冲浘鏍�
+ /// </summary>
+ /// <returns></returns>
+ public MostRightIconControl AddMostRightSwitchIcon()
+ {
+ var btnSwitch = this.AddMostRightEmptyIcon(104, 63);
+ this.ChangedChidrenBindMode(btnSwitch, ChidrenBindMode.NotBind);
+ btnSwitch.UnSelectedImagePath = "Item/Switch2.png";
+ btnSwitch.SelectedImagePath = "Item/Switch2Selected.png";
+
+ return btnSwitch;
+ }
+
+ #endregion
+
#region 鈻� 娣诲姞鏈�鍙崇殑鏄剧ず鏂囨湰_________________
/// <summary>
--
Gitblit v1.8.0