From bd46c57c77c276014db3192a4e2cc96e23c93202 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 21 二月 2020 13:08:47 +0800 Subject: [PATCH] 先上传个版本吧 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs | 33 ++++++++++++++++++++++++++++++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs index 1308333..f62992d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs @@ -26,6 +26,25 @@ /// </summary> public FrameLayout bodyFrameLayout = null; /// <summary> + /// 宸︽粦浣胯兘 + /// </summary> + private bool m_ScrollEnabled = true; + /// <summary> + /// 宸︽粦浣胯兘 + /// </summary> + public bool ScrollEnabled + { + get { return m_ScrollEnabled; } + set + { + if (UserView.HomePage.Instance.ScrollEnabled != value) + { + UserView.HomePage.Instance.ScrollEnabled = value; + this.m_ScrollEnabled = value; + } + } + } + /// <summary> /// 缂撳瓨鍚姩鍙傛暟 /// </summary> private object[] m_parameter = null; @@ -46,6 +65,9 @@ //鍒濆鍖栦腑閮ㄦ帶浠� this.InitBodyFrameLayout(); + + //鍒濆宸︽粦浣胯兘鍙� + this.ScrollEnabled = true; } /// <summary> @@ -147,6 +169,8 @@ /// <param name="parameter">鍚姩鍙傛暟锛氬弬鏁扮敱鎸囧畾鐢婚潰鐨凷howForm鍑芥暟鎵�鎸囧畾</param> public override void AddForm(params object[] parameter) { + base.AddForm(parameter); + //妫�娴嬭兘鍚﹁拷鍔犵敾闈� if (UserCenterLogic.CheckCanAddForm(this) == false) { @@ -172,11 +196,14 @@ /// </summary> public override void CloseFormBefore() { + base.CloseFormBefore(); + + //宸︽粦浣胯兘 + this.ScrollEnabled = true; + this.m_parameter = null; //娓呯┖bodyFrame - this.ClearBodyFrame(); - - base.CloseFormBefore(); + this.ClearBodyFrame(); } #endregion -- Gitblit v1.8.0