xm
2020-07-20 b02e8275a21dc06bf54b66273485d44e007a2616
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs
@@ -6,7 +6,7 @@
    /// <summary>
    /// 做成一个点击能够显示选中状态背景色的RowLayout(拥有桌布)
    /// </summary>
    public class RowLayoutControl : RowLayout
    public class RowLayoutControl : RowLayoutBase
    {
        #region ■ 变量声明___________________________
@@ -41,10 +41,11 @@
        /// <summary>
        /// 做成一个点击能够显示选中状态背景色的RowLayout(拥有桌布)
        /// </summary>
        /// <param name="ChidrenYaxis">子控件Y轴偏移量(真实值,有些界面需要这种特殊操作)</param>
        /// <param name="ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
        public RowLayoutControl(int i_ChidrenYaxis = 0)
        {
            this.LineColor = UserCenterColor.Current.Transparent;
            this.SubViewWidth = Application.GetRealWidth(184);
            this.chidrenYaxis = i_ChidrenYaxis;
            this.Height = ControlCommonResourse.ListViewRowHeight;
@@ -90,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;
@@ -100,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
    }
}