wjc
2023-08-18 c1cb2d8c6034a2ee7aa8a5710bba15b14f76cebc
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs
@@ -19,7 +19,6 @@
            this.Width = Application.GetRealWidth(width);
            this.Height = Application.GetRealHeight(height);
            this.Radius = (uint)Application.GetRealHeight(cornerValue);
            this.BackgroundColor = 0XFF457625;
        }
        Button btnImage = new Button
@@ -152,9 +151,13 @@
            EventHandler<MouseEventArgs> UpClick = (sender, e) =>
            {
                this.BackgroundColor = 0x00000000;
                //弹起来还原背景颜色
            };
            this.Tag = "Cancel";
            btnImage.Tag = this.Tag;
            btnName.Tag = this.Tag;
            this.MouseUpEventHandler += UpClick;
            btnImage.MouseUpEventHandler += UpClick;
            btnName.MouseUpEventHandler += UpClick;
@@ -171,10 +174,12 @@
            EventHandler<MouseEventArgs> DownClick = (sender, e) =>
            {
                //按下去改变背景颜色
                this.BackgroundColor = 0xff454635;
                this.BackgroundColor = 0xFFEFEFEF;
                action?.Invoke(this, btnImage, btnName);
            };
            this.MouseDownEventHandler += DownClick;
            btnImage.MouseDownEventHandler += DownClick;
            btnName.MouseDownEventHandler += DownClick;