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/Logic/UserCenterLogic.cs | 35 ----------------------------------- 1 files changed, 0 insertions(+), 35 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs index bb2ab6f..2beb098 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs @@ -734,41 +734,6 @@ #endregion - #region 鈻� 瀛愭帶浠剁殑Y杞村潗鏍嘷___________________ - - /// <summary> - /// 鎸囧畾浣嶇疆绫诲瀷鑾峰彇Rowlayout鐨勫瓙鎺т欢鐨刌杞村潗鏍�(璇风‘淇濆瓙鎺т欢涓嶅ぇ浜庣埗瀹瑰櫒) - /// </summary> - /// <param name="fatherCtrHeight">鐖舵帶浠剁殑鐪熷疄楂樺害</param> - /// <param name="ctrHeight">瀛愭帶浠剁殑鐪熷疄楂樺害</param> - /// <param name="alignment">浣嶇疆瀵归綈鏂瑰紡</param> - /// <param name="Space">涓婁笅闂寸殑绌虹櫧闂磋窛,鐪佺暐鏃讹紝鍙栬鎺т欢鍏遍�氬彉閲忕殑鍊笺�傝缃负-1鏃讹紝涓嶈绠楃┖鐧介棿璺�</param> - /// <returns></returns> - public static int GetControlChidrenYaxis(int fatherCtrHeight, int ctrHeight, UViewAlignment alignment, int Space = 0) - { - if (Space < 0) - { - //涓嶈绠楅棿璺濆�� - Space = 0; - } - - if (alignment == UViewAlignment.Center) - { - return fatherCtrHeight / 2 - ctrHeight / 2; - } - else if (alignment == UViewAlignment.Top) - { - return (fatherCtrHeight / 2 - Space / 2) / 2 - ctrHeight / 2; - } - else - { - int top = fatherCtrHeight / 2 + Space / 2; - return top + (fatherCtrHeight - top) / 2 - ctrHeight / 2; - } - } - - #endregion - #region 鈻� 鎷兼帴淇℃伅___________________________ /// <summary> -- Gitblit v1.8.0