From 4dce704aaf8587cf3f91cf88f2208315a03c4cbb Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 08 四月 2020 13:54:58 +0800 Subject: [PATCH] 先上传一个版本 --- ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs b/ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs index 3d4ef08..92435b1 100755 --- a/ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs +++ b/ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs @@ -31,7 +31,7 @@ /// </summary> private bool m_ScrollEnabled = true; /// <summary> - /// 宸︽粦浣胯兘 + /// 宸︽粦浣胯兘(鐣岄潰鍏抽棴鏃�,搴曞眰浼氳繕鍘�,鏃犻渶鍐嶅鐞�) /// </summary> public bool ScrollEnabled { @@ -134,7 +134,7 @@ txttitle.Name = "txtTitle"; txttitle.TextSize = 17; txttitle.X = Application.GetRealWidth(161); - txttitle.Height = Application.GetRealHeight(69); + txttitle.Height = Application.GetRealHeight(75); txttitle.Width = Application.GetRealWidth(850); txttitle.Gravity = Gravity.CenterVertical; txttitle.TextColor = UserCenterColor.Current.TopLayoutTitleText; @@ -380,7 +380,11 @@ { return; } - bodyFrameLayout?.RemoveAll(); + if (bodyFrameLayout == null || bodyFrameLayout.Parent == null) + { + return; + } + bodyFrameLayout.RemoveAll(); } #endregion @@ -408,6 +412,16 @@ back?.RemoveFromParent(); } + /// <summary> + /// 鑾峰彇杩斿洖閿� + /// </summary> + public BackViewControl GetBackButton() + { + //绉婚櫎杩斿洖閿� + var back = (BackViewControl)topFrameLayout.GetTagByKey("btnBack"); + return back; + } + #endregion } } -- Gitblit v1.8.0