From b68cdc7e103a00d5df73e4b75603be8da1815b4a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 29 四月 2020 13:59:52 +0800 Subject: [PATCH] 上传版本 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs index c017895..668b90c 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs @@ -6,7 +6,7 @@ /// <summary> /// 鍋氭垚涓�涓偣鍑昏兘澶熸樉绀洪�変腑鐘舵�佽儗鏅壊鐨凴owLayout(鎷ユ湁妗屽竷) /// </summary> - public class RowLayoutControl : RowLayout + public class RowLayoutControl : RowLayoutBase { #region 鈻� 鍙橀噺澹版槑___________________________ @@ -91,8 +91,9 @@ /// <summary> /// 娣诲姞缂栬緫鎺т欢 /// </summary> + /// <param name="hideMenuByClick">鐐瑰嚮鏃�,鏄惁闅愯棌宸︽粦鑿滃崟</param> /// <returns></returns> - public NormalViewControl AddEditorControl() + public NormalViewControl AddEditorControl(bool hideMenuByClick = true) { var btnEditor = new NormalViewControl(Application.GetRealWidth(184), this.Height, false); btnEditor.BackgroundColor = 0xff4a4a4a; @@ -101,11 +102,18 @@ btnEditor.TextAlignment = TextAlignment.Center; btnEditor.TextID = R.MyInternationalizationString.uEditor; this.AddRightView(btnEditor); + if (hideMenuByClick == true) + { + btnEditor.ButtonClickEvent += (sender, e) => + { + //鍏抽棴宸︽粦鑿滃崟 + this.HideMenu(); + }; + } return btnEditor; - } - - #endregion + } + #endregion } } -- Gitblit v1.8.0