| | |
| | | using Shared; |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView |
| | | { |
| | | public class TypeMultiFramLayout:BaseFramLayout |
| | | public class TypeMultiFramLayout |
| | | { |
| | | |
| | | private uint UpBackgroundColor = 0x00000000; |
| | | private uint DownBackgroundColor = 0xff454635; |
| | | private uint UpBackgroundColor = MusicColor.ViewColor; |
| | | private uint DownBackgroundColor = 0xFFEFEFEF; |
| | | |
| | | /// <summary> |
| | | /// 多个类型容器 |
| | |
| | | { |
| | | 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; |
| | |
| | | { |
| | | EventHandler<MouseEventArgs> UpClick = (sender, e) => |
| | | { |
| | | rightFramLayout.BackgroundColor = this.UpBackgroundColor; |
| | | //rightFramLayout.BackgroundColor = this.UpBackgroundColor; |
| | | |
| | | //弹起来还原背景颜色 |
| | | }; |
| | |
| | | EventHandler<MouseEventArgs> DownClick = (sender, e) => |
| | | { |
| | | //按下去改变背景颜色 |
| | | rightFramLayout.BackgroundColor = this.DownBackgroundColor; |
| | | //rightFramLayout.BackgroundColor = this.DownBackgroundColor; |
| | | action?.Invoke(rightFramLayout); |
| | | }; |
| | | rightFramLayout.MouseDownEventHandler += DownClick; |