| | |
| | | #region ■ 变量声明___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 单击弹起事件
|
| | | /// </summary>
|
| | | public Action<object, MouseEventArgs> ButtonClickEvent;
|
| | | /// <summary>
|
| | | /// 状态设置的事件(会重载底层效果)
|
| | | /// </summary>
|
| | | public Action<bool> SelectStatuEvent;
|
| | |
| | | /// 是否启用点亮功能(默认启用)
|
| | | /// </summary>
|
| | | public bool UseClickStatu = true;
|
| | | /// <summary>
|
| | | /// 能否点击
|
| | | /// </summary>
|
| | | public bool CanClick = true;
|
| | | /// <summary>
|
| | | /// 原来的背景色
|
| | | /// </summary>
|
| | |
| | | {
|
| | | this.chidrenYaxis = i_ChidrenYaxis;
|
| | |
|
| | | //置空底层的事件
|
| | | this.MouseUpEventHandler = null;
|
| | | this.MouseUpEventHandler += ChildrenUpEvent;
|
| | | this.MouseDownEventHandler += ChildrenDownEvent;
|
| | | }
|
| | |
| | | /// </summary>
|
| | | public override void RemoveFromParent()
|
| | | {
|
| | | this.ButtonClickEvent = null;
|
| | | this.SelectStatuEvent = null;
|
| | |
|
| | | base.RemoveFromParent();
|