| | |
| | | { |
| | | public class TypeMultiFramLayout |
| | | { |
| | | /// <summary> |
| | | /// 是否可以点击 |
| | | /// </summary> |
| | | private bool mIsClick = true; |
| | | |
| | | /// <summary> |
| | | /// 设置控制点击事件 |
| | | /// </summary> |
| | | /// <param name="isClick">false点击无效</param> |
| | | public void setClick(bool isClick) |
| | | { |
| | | this.mIsClick = isClick; |
| | | } |
| | | private uint UpBackgroundColor = MusicColor.ViewColor; |
| | | private uint DownBackgroundColor = AksCommonMethod.seleBackgroundColor; |
| | | |
| | |
| | | { |
| | | EventHandler<MouseEventArgs> UpClick = (sender, e) => |
| | | { |
| | | action?.Invoke(rightFramLayout); |
| | | //rightFramLayout.BackgroundColor = this.UpBackgroundColor; |
| | | |
| | | |
| | | //弹起来还原背景颜色 |
| | | }; |
| | | rightFramLayout.MouseUpEventHandler += UpClick; |
| | |
| | | { |
| | | //按下去改变背景颜色 |
| | | //rightFramLayout.BackgroundColor =AksCommonMethod.seleBackgroundColor; |
| | | action?.Invoke(rightFramLayout); |
| | | |
| | | }; |
| | | rightFramLayout.MouseDownEventHandler += DownClick; |
| | | btnBottonRightImage.MouseDownEventHandler += DownClick; |