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 |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs
index 9bf4e83..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);
         }
 

--
Gitblit v1.8.0