From 3793a9a38ac6c4c4111c2bba3a35a71c30601e82 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 13 四月 2020 19:38:24 +0800
Subject: [PATCH] 上传个东西

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 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..1e42396 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
@@ -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,6 +102,14 @@
             btnEditor.TextAlignment = TextAlignment.Center;
             btnEditor.TextID = R.MyInternationalizationString.uEditor;
             this.AddRightView(btnEditor);
+            if (hideMenuByClick == true)
+            {
+                btnEditor.ButtonClickEvent += (sender, e) =>
+                {
+                    //鍏抽棴宸︽粦鑿滃崟
+                    this.HideMenu();
+                };
+            }
 
             return btnEditor;
         }

--
Gitblit v1.8.0