From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期五, 28 二月 2020 15:25:13 +0800 Subject: [PATCH] 2020.2.28 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs | 88 ++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 80 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs index a9ac393..60c5d60 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs @@ -53,7 +53,7 @@ /// <para>娣诲姞搴曠嚎(濡傛灉宸﹁竟鏈夊浘鏍囷紝鍒欏厛娣诲姞鍥炬爣锛屽啀娣诲姞搴曠嚎)</para> /// <para>瀹冪殑闀垮害涓猴細褰撳墠鎺т欢瀹藉害-宸﹀彸鍥哄畾闂磋窛-宸﹁竟鍥剧墖瀹藉害(濡傛灉鏈�)-鍙宠竟鐨勫亸绉婚噺</para> /// </summary> - public NormalViewControl AddBottomLine() + public virtual NormalViewControl AddBottomLine() { int lineWidth = this.Width - ControlCommonResourse.XXLeft * 2 - LeftOffset - RightOffset; int XX = ControlCommonResourse.XXLeft + LeftOffset; @@ -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) @@ -214,6 +214,7 @@ public MostRightIconControl AddMostRightEmptyIcon(int i_width, int i_height) { var btnContr = new MostRightIconControl(i_width, i_height); + btnContr.UseClickStatu = false; this.AddChidren(btnContr, ChidrenBindMode.NotBind); btnContr.InitControl(); //澶嶅悎鎺т欢闇�瑕佺壒娈婂鐞� @@ -267,12 +268,7 @@ { i_width = Application.GetRealWidth(i_width); } - var btnContr = new NormalViewControl(i_width, false); - btnContr.X = this.Width - ControlCommonResourse.XXLeft - i_width - rightIconSize + RightOffset; - btnContr.Height = this.Height; - btnContr.TextAlignment = TextAlignment.CenterRight; - btnContr.TextColor = UserCenterColor.Current.TextGrayColor1; - btnContr.Text = i_text; + var btnContr = AddMostRightView(i_text, i_width, this.Height, false); this.AddChidren(btnContr, ChidrenBindMode.BindEventOnly); if (chidrenYaxis != 0) { @@ -282,6 +278,82 @@ return btnContr; } + /// <summary> + /// 娣诲姞鏈�鍙崇殑鏄剧ず鏂囨湰,姝ゆ柟娉曚笉浼氫富鍔ㄦ坊鍔犲埌鐖舵帶浠朵腑(濡傛灉鍙宠竟鏈夊浘鏍囩殑璇�,鍏堟坊鍔犲浘鏍囧悗,鍐嶆坊鍔犺繖涓枃鏈�) + /// </summary> + /// <param name="i_caption">鍐呭</param> + /// <param name="i_width">瀹藉害</param> + /// <param name="i_height">楂樺害</param> + /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> + /// <returns></returns> + public NormalViewControl AddMostRightView(string i_text, int i_width, int i_height, bool real = true) + { + if (real == true) + { + i_width = Application.GetRealWidth(i_width); + i_height = Application.GetRealHeight(i_height); + } + var btnContr = new NormalViewControl(i_width, i_height, false); + btnContr.X = this.Width - ControlCommonResourse.XXLeft - i_width - rightIconSize + RightOffset; + btnContr.Height = i_height; + btnContr.TextAlignment = TextAlignment.CenterRight; + btnContr.TextColor = UserCenterColor.Current.TextGrayColor1; + btnContr.Text = i_text; + + return btnContr; + } + + #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 } } -- Gitblit v1.8.0