From a4e9d02ce5cfc501ef9fecac0047c332b5426df2 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 14 八月 2023 15:16:01 +0800 Subject: [PATCH] 2023年08月14日15:15:49 --- HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs index 67f3228..4ee20f1 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs @@ -40,7 +40,6 @@ TextAlignment = TextAlignment.Center, Gravity = Gravity.CenterHorizontal, Padding = new Padding(0, 20, 0, 20), - IsMoreLines = true, Name = "btnName", @@ -103,6 +102,7 @@ /// </summary> public void AddLeftLine() { + btnLeftLine.Height = this.Height; this.AddChidren(btnLeftLine); } /// <summary> @@ -110,6 +110,8 @@ /// </summary> public void AddRightLine() { + btnRightLine.Height = this.Height; + btnRightLine.X = this.Width - Application.GetRealWidth(1); this.AddChidren(btnRightLine); } @@ -118,6 +120,7 @@ /// </summary> public void AddTopLine() { + btnTopLine.Width = this.Width; this.AddChidren(btnTopLine); } /// <summary> @@ -125,6 +128,8 @@ /// </summary> public void AddBottomLine() { + btnBottomLine.Y = this.Height - Application.GetRealHeight(1); + btnBottomLine.Width = this.Width; this.AddChidren(btnBottomLine); } @@ -146,7 +151,7 @@ EventHandler<MouseEventArgs> UpClick = (sender, e) => { this.BackgroundColor = 0x00000000; - action?.Invoke(this, btnImage, btnName); + //寮硅捣鏉ヨ繕鍘熻儗鏅鑹� }; this.MouseUpEventHandler += UpClick; @@ -156,9 +161,7 @@ //EventHandler<MouseEventArgs> MoveClick = (sender, e) => //{ - // Console.WriteLine("绉诲姩浜嬩欢====="); // this.BackgroundColor = 0x00000000; - // action?.Invoke(this, btnImage, btnName); // //寮硅捣鏉ヨ繕鍘熻儗鏅鑹� //}; //this.MouseMoveEventHandler += MoveClick; @@ -169,6 +172,7 @@ { //鎸変笅鍘绘敼鍙樿儗鏅鑹� this.BackgroundColor = 0xff454635; + action?.Invoke(this, btnImage, btnName); }; this.MouseDownEventHandler += DownClick; btnImage.MouseDownEventHandler += DownClick; -- Gitblit v1.8.0