From bff8993501334c4f3c5f902216fe03253be747f8 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期三, 15 四月 2020 16:59:01 +0800
Subject: [PATCH] 合并新代码
---
ZigbeeApp20200414/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ZigbeeApp20200414/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs b/ZigbeeApp20200414/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
index c017895..1e42396 100755
--- a/ZigbeeApp20200414/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
+++ b/ZigbeeApp20200414/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