| | |
| | | TextColor = MusicColor.TextColor, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | Gravity = Gravity.CenterVertical, |
| | | Padding=new Padding(0,0,0,0), |
| | | IsMoreLines = true, |
| | | }; |
| | | |
| | |
| | | { |
| | | EventHandler<MouseEventArgs> UpClick = (sender, e) => |
| | | { |
| | | leftFramLayout.BackgroundColor = this.UpBackgroundColor; |
| | | //leftFramLayout.BackgroundColor = this.UpBackgroundColor; |
| | | |
| | | //弹起来还原背景颜色 |
| | | }; |
| | |
| | | EventHandler<MouseEventArgs> DownClick = (sender, e) => |
| | | { |
| | | //按下去改变背景颜色 |
| | | leftFramLayout.BackgroundColor = this.DownBackgroundColor; |
| | | //leftFramLayout.BackgroundColor = this.DownBackgroundColor; |
| | | action?.Invoke(leftFramLayout); |
| | | }; |
| | | leftFramLayout.MouseDownEventHandler += DownClick; |