mac
2023-10-12 e209b6a3cebceb656d60d0724f55c6690ec39129
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeMultiFramLayout.cs
@@ -3,11 +3,11 @@
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>
        /// 多个类型容器
@@ -95,6 +95,7 @@
            TextColor = MusicColor.TextColor,
            TextAlignment = TextAlignment.CenterRight,
            Gravity = Gravity.CenterVertical,
            Padding=new Padding(0,0,0,0),
            IsMoreLines = true,
        };
@@ -135,7 +136,7 @@
        {
            EventHandler<MouseEventArgs> UpClick = (sender, e) =>
            {
                leftFramLayout.BackgroundColor = this.UpBackgroundColor;
                //leftFramLayout.BackgroundColor = this.UpBackgroundColor;
               
                //弹起来还原背景颜色
            };
@@ -147,7 +148,7 @@
            EventHandler<MouseEventArgs> DownClick = (sender, e) =>
            {
                //按下去改变背景颜色
                leftFramLayout.BackgroundColor = this.DownBackgroundColor;
                //leftFramLayout.BackgroundColor = this.DownBackgroundColor;
                action?.Invoke(leftFramLayout);
            };
            leftFramLayout.MouseDownEventHandler += DownClick;
@@ -163,7 +164,7 @@
        {
            EventHandler<MouseEventArgs> UpClick = (sender, e) =>
            {
                rightFramLayout.BackgroundColor = this.UpBackgroundColor;
                //rightFramLayout.BackgroundColor = this.UpBackgroundColor;
          
                //弹起来还原背景颜色
            };
@@ -175,7 +176,7 @@
            EventHandler<MouseEventArgs> DownClick = (sender, e) =>
            {
                //按下去改变背景颜色
                rightFramLayout.BackgroundColor = this.DownBackgroundColor;
                //rightFramLayout.BackgroundColor = this.DownBackgroundColor;
                action?.Invoke(rightFramLayout);
            };
            rightFramLayout.MouseDownEventHandler += DownClick;