From fd1f19e8479c764fa28b0da3a2f9b34a3debe772 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 03 八月 2023 21:47:04 +0800 Subject: [PATCH] 2023年08月03日21:47:02 --- HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs | 13 +++++++++---- 1 files changed, 9 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..052c038 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs @@ -19,6 +19,7 @@ this.Width = Application.GetRealWidth(width); this.Height = Application.GetRealHeight(height); this.Radius = (uint)Application.GetRealHeight(cornerValue); + this.BackgroundColor = 0XFF457625; } Button btnImage = new Button @@ -40,7 +41,6 @@ TextAlignment = TextAlignment.Center, Gravity = Gravity.CenterHorizontal, Padding = new Padding(0, 20, 0, 20), - IsMoreLines = true, Name = "btnName", @@ -103,6 +103,7 @@ /// </summary> public void AddLeftLine() { + btnLeftLine.Height = this.Height; this.AddChidren(btnLeftLine); } /// <summary> @@ -110,6 +111,8 @@ /// </summary> public void AddRightLine() { + btnRightLine.Height = this.Height; + btnRightLine.X = this.Width - Application.GetRealWidth(1); this.AddChidren(btnRightLine); } @@ -118,6 +121,7 @@ /// </summary> public void AddTopLine() { + btnTopLine.Width = this.Width; this.AddChidren(btnTopLine); } /// <summary> @@ -125,6 +129,8 @@ /// </summary> public void AddBottomLine() { + btnBottomLine.Y = this.Height - Application.GetRealHeight(1); + btnBottomLine.Width = this.Width; this.AddChidren(btnBottomLine); } @@ -146,7 +152,7 @@ EventHandler<MouseEventArgs> UpClick = (sender, e) => { this.BackgroundColor = 0x00000000; - action?.Invoke(this, btnImage, btnName); + //寮硅捣鏉ヨ繕鍘熻儗鏅鑹� }; this.MouseUpEventHandler += UpClick; @@ -156,9 +162,7 @@ //EventHandler<MouseEventArgs> MoveClick = (sender, e) => //{ - // Console.WriteLine("绉诲姩浜嬩欢====="); // this.BackgroundColor = 0x00000000; - // action?.Invoke(this, btnImage, btnName); // //寮硅捣鏉ヨ繕鍘熻儗鏅鑹� //}; //this.MouseMoveEventHandler += MoveClick; @@ -169,6 +173,7 @@ { //鎸変笅鍘绘敼鍙樿儗鏅鑹� this.BackgroundColor = 0xff454635; + action?.Invoke(this, btnImage, btnName); }; this.MouseDownEventHandler += DownClick; btnImage.MouseDownEventHandler += DownClick; -- Gitblit v1.8.0