From f9181a9c8125136f597add7c30cb2ff508d54ba7 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:34:32 +0800
Subject: [PATCH] 2024年07月25日17:33:40

---
 HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/VerticalBoutonFLayout.cs |   42 ++++++++++++++++++++++++++++--------------
 1 files changed, 28 insertions(+), 14 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/VerticalBoutonFLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/VerticalBoutonFLayout.cs
index d16b329..2ca711c 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/VerticalBoutonFLayout.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/VerticalBoutonFLayout.cs
@@ -5,9 +5,21 @@
 {
     public class VerticalBoutonFLayout:BaseFramLayout
     {
+        /// <summary>
+        /// 鏄惁鍙互鐐瑰嚮
+        /// </summary>
+        private bool mIsClick = true;
 
+        /// <summary>
+        /// 璁剧疆鎺у埗鐐瑰嚮浜嬩欢
+        /// </summary>
+        /// <param name="isClick">false鐐瑰嚮鏃犳晥</param>
+        public void setClick(bool isClick)
+        {
+            this.mIsClick = isClick;
+        }
         public const int widthFrameLayout = 80;
-        public const int heightFrameLayout = 140;
+        public const int heightFrameLayout = 140-15;
         public const int cornerValue = 12;
 
         public VerticalBoutonFLayout(int width = widthFrameLayout, int height = heightFrameLayout)
@@ -22,7 +34,7 @@
         {
             Height = Application.GetRealWidth(40),
             Width = Application.GetRealWidth(40),
-            Radius = (uint)Application.GetRealHeight(20),
+            Radius = (uint)Application.GetRealWidth(20),
             BackgroundColor = MusicColor.WhiteColor,
             Gravity = Gravity.CenterHorizontal,
         };
@@ -33,6 +45,7 @@
             Gravity = Gravity.Center,
             TextColor = MusicColor.MusicTxet14SelectedColor,
             TextSize = TextSize.Text14,
+            IsBold=true,
         };
 
        public Button btnName = new Button
@@ -43,7 +56,7 @@
             TextColor = MusicColor.TextColor,
             TextAlignment = TextAlignment.Center,
             Gravity = Gravity.CenterHorizontal,
-            Padding = new Padding(0, 20, 0, 20),
+            Padding = new Padding(0, 8, 0, 8),
             IsMoreLines = true,
             Text="none"
         };
@@ -52,7 +65,7 @@
         {
             Height = Application.GetRealWidth(40),
             Width = Application.GetRealWidth(40),
-            Radius = (uint)Application.GetRealHeight(20),
+            Radius = (uint)Application.GetRealWidth(20),
             BackgroundColor = MusicColor.WhiteColor,
             Gravity = Gravity.CenterHorizontal,
         };
@@ -63,6 +76,7 @@
             Gravity = Gravity.Center,
             TextColor = 0xFFA5AEBC,
             TextSize = TextSize.Text14,
+            IsBold = true,
         };
 
 
@@ -131,30 +145,30 @@
         {
             EventHandler<MouseEventArgs> UpClick = (sender, e) =>
             {
+                action?.Invoke(OFFFLayout, OFFButton);
                 OFFFLayout.BackgroundColor = MusicColor.WhiteColor;
                 OFFButton.TextColor = 0xFFA5AEBC;
-
                 //寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
             };
             OFFFLayout.MouseUpEventHandler += UpClick;
             OFFButton.MouseUpEventHandler += UpClick;
 
 
-            //EventHandler<MouseEventArgs> MoveClick = (sender, e) =>
-            //{
-            //    this.BackgroundColor = 0x00000000;
-            //    //寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
-            //};
-            //this.MouseMoveEventHandler += MoveClick;
-            //btnImage.MouseMoveEventHandler += MoveClick;
-            //btnName.MouseMoveEventHandler += MoveClick;
+            EventHandler<MouseEventArgs> CancelClick = (sender, e) =>
+            {
+                OFFFLayout.BackgroundColor = MusicColor.WhiteColor;
+                OFFButton.TextColor = 0xFFA5AEBC;
+                //寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
+            };
+            OFFFLayout.MouseUpOutsideEventHandler += CancelClick;
+            OFFButton.MouseUpOutsideEventHandler += CancelClick;
 
             EventHandler<MouseEventArgs> DownClick = (sender, e) =>
             {
                 //鎸変笅鍘绘敼鍙樿儗鏅鑹�
                 OFFFLayout.BackgroundColor = MusicColor.MusicTxet14SelectedColor;
                 OFFButton.TextColor = MusicColor.WhiteColor;
-                action?.Invoke(OFFFLayout, OFFButton);
+                
             };
             OFFFLayout.MouseDownEventHandler += DownClick;
             OFFButton.MouseDownEventHandler += DownClick;

--
Gitblit v1.8.0