| | |
| | | { |
| | | |
| | | private uint UpBackgroundColor = MusicColor.ViewColor; |
| | | private uint DownBackgroundColor = 0xff454635; |
| | | private uint DownBackgroundColor = 0xFFEFEFEF; |
| | | /// <summary> |
| | | /// 单个类型容器 |
| | | /// </summary> |
| | |
| | | { |
| | | EventHandler<MouseEventArgs> UpClick = (sender, e) => |
| | | { |
| | | singleFramLayout.BackgroundColor = this.UpBackgroundColor; |
| | | //singleFramLayout.BackgroundColor = this.UpBackgroundColor; |
| | | |
| | | //弹起来还原背景颜色 |
| | | }; |
| | |
| | | EventHandler<MouseEventArgs> DownClick = (sender, e) => |
| | | { |
| | | //按下去改变背景颜色 |
| | | singleFramLayout.BackgroundColor = this.DownBackgroundColor; |
| | | //singleFramLayout.BackgroundColor = this.DownBackgroundColor; |
| | | action?.Invoke(singleFramLayout); |
| | | }; |
| | | singleFramLayout.MouseDownEventHandler += DownClick; |