From eb424d24e39bab4a245725f35deab3f234ea0f13 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 13 十二月 2019 10:48:50 +0800
Subject: [PATCH] 2019.12.13
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs | 69 ----------------------------------
1 files changed, 0 insertions(+), 69 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs
index 6c3fb2b..36c8452 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs
@@ -241,75 +241,6 @@
return Application.GetRealWidth(realWidth + 20);
}
- /// <summary>
- /// 娣诲姞搴曢儴闃村奖鐗规晥(纭繚鎷ユ湁鐖舵帶浠跺悗鎵嶈皟鐢�)
- /// </summary>
- /// <param name="view">涓哄摢涓帶浠舵坊鍔犻槾褰辩壒鏁�,鐪佺暐鏃�,涓哄綋鍓嶆帶浠舵坊鍔�</param>
- /// <param name="average">娣诲姞鐨勯槾褰辩壒鏁堟槸鍚︽寜骞冲潎鍊艰缃珮瀹藉害</param>
- public void AddBottomShadow(View view = null, bool average = false)
- {
- //闇�瑕佹墿澶х殑楂樺害
- int heightValue = 21;
- //闇�瑕佹墿澶х殑瀹藉害
- int widthValue = 15;
- //鏈�澶ч珮搴�
- int maxHeight = 0;
- if (average == false)
- {
- heightValue = Application.GetRealHeight(heightValue);
- widthValue = Application.GetRealWidth(widthValue);
- maxHeight = Application.GetRealHeight(460);
- }
- else
- {
- heightValue = Application.GetMinRealAverage(heightValue);
- widthValue = Application.GetMinRealAverage(widthValue);
- maxHeight = Application.GetMinRealAverage(460);
- }
- if (view == null)
- {
- //鐪佺暐鏃�,鎸囧畾涓哄綋鍓嶆帶浠�
- view = this;
- }
- //鍏堢Щ闄�
- this.btnBottomShadowView1?.RemoveFromParent();
- this.btnBottomShadowView2?.RemoveFromParent();
-
- int realHeight = view.Height + heightValue * 2;
- if (realHeight <= maxHeight)
- {
- //闃村奖鎺т欢
- this.btnBottomShadowView1 = new Button();
- btnBottomShadowView1.UnSelectedImagePath = "Item/BottomShadow.png";
- btnBottomShadowView1.Height = realHeight;
- btnBottomShadowView1.Width = view.Width + widthValue * 2;
- btnBottomShadowView1.X = view.X - widthValue;
- btnBottomShadowView1.Y = view.Y;
- view.Parent.AddChidren(btnBottomShadowView1);
- view.BringToFront();
- }
- else
- {
- //瓒呰繃鏈�澶ф椂,鐗规畩澶勭悊
- this.btnBottomShadowView1 = new Button();
- btnBottomShadowView1.UnSelectedImagePath = "Item/BottomShadow.png";
- btnBottomShadowView1.Height = view.Height - heightValue * 2;
- btnBottomShadowView1.Width = view.Width + widthValue * 2;
- btnBottomShadowView1.X = view.X - widthValue;
- btnBottomShadowView1.Y = view.Y + heightValue * 2;
- view.Parent.AddChidren(btnBottomShadowView1);
-
- this.btnBottomShadowView2 = new Button();
- btnBottomShadowView2.UnSelectedImagePath = "Item/BottomShadow.png";
- btnBottomShadowView2.Height = maxHeight;
- btnBottomShadowView2.Width = view.Width + widthValue * 2;
- btnBottomShadowView2.X = view.X - widthValue;
- btnBottomShadowView2.Y = view.Bottom - maxHeight + heightValue * 2;
- view.Parent.AddChidren(btnBottomShadowView2);
- view.BringToFront();
- }
- }
-
#endregion
#region 鈻� Log鍑哄姏____________________________
--
Gitblit v1.8.0