| | |
| | | /// 控件的点击事件(此事件被认可为执行按钮按下事件,受CanClick属性控制)
|
| | | /// </summary>
|
| | | public Action<Button, MouseEventArgs> ButtonClickEvent = null;
|
| | | /// <summary>
|
| | | /// 底部阴影控件1
|
| | | /// </summary>
|
| | | private Button btnBottomShadowView1 = null;
|
| | | /// <summary>
|
| | | /// 底部阴影控件2
|
| | | /// </summary>
|
| | | private Button btnBottomShadowView2 = null;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | }
|
| | | 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
|