黄学彪
2019-12-02 4c40f503acf2bcf90d294cc439ef46ba259b9c60
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs
@@ -35,6 +35,14 @@
        /// 控件的点击事件(此事件被认可为执行按钮按下事件,受CanClick属性控制)
        /// </summary>
        public Action<Button, MouseEventArgs> ButtonClickEvent = null;
        /// <summary>
        /// 底部阴影控件1
        /// </summary>
        private Button btnBottomShadowView1 = null;
        /// <summary>
        /// 底部阴影控件2
        /// </summary>
        private Button btnBottomShadowView2 = null;
        #endregion
@@ -231,18 +239,6 @@
            }
            int realWidth = byteLength * (int)textSize;
            return Application.GetRealWidth(realWidth + 20);
        }
        /// <summary>
        /// 添加底部阴影特效(确保拥有父控件后才调用)
        /// </summary>
        public void AddBottomShadow()
        {
            var btnShadow = new PicViewControl(this.Width, Application.GetMinRealAverage(45), false);
            btnShadow.X = this.X;
            btnShadow.Y = this.Bottom;
            btnShadow.UnSelectedImagePath = "Item/BottomShadow.png";
            this.Parent.AddChidren(btnShadow);
        }
        #endregion