From 94e4e5b9fd3da964c44b7b14227d6fe2bbb426d7 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期四, 02 四月 2020 13:56:39 +0800
Subject: [PATCH] 2020-04-02-2

---
 ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionButton.cs |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionButton.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionButton.cs
index ca424b1..fba65f2 100755
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionButton.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionButton.cs
@@ -17,6 +17,10 @@
         /// </summary>
         public Button ImageBG;
         /// <summary>
+        /// ClickBtn
+        /// </summary>
+        public Button ClickBtn;
+        /// <summary>
         /// v_Selected
         /// </summary>
         private bool v_Selected;
@@ -79,21 +83,29 @@
                 Gravity = Gravity.CenterHorizontal,
                 UnSelectedImagePath = imagePath,
                 SelectedImagePath = selectedImagePath,
-                Tag = Tag
+                Tag = Tag,
+                IsSelected=true
             };
             AddChidren(ImageBtn);
 
             NameBtn = new Button()
             {
                 Y = Application.GetRealHeight(200),
-                Width = Application.GetRealWidth(160),
+                Width = Application.GetRealWidth(170),
                 Height = Application.GetRealHeight(60),
                 Gravity = Gravity.CenterHorizontal,
                 TextColor = ZigbeeColor.Current.GXCTextBlackColor,
                 SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor,
-                Tag = Tag
+                Tag = Tag,
+                TextSize=11
             };
             AddChidren(NameBtn);
+
+            ClickBtn = new Button
+            {
+                Tag = Tag
+            };
+            AddChidren(ClickBtn);
         }
 
 
@@ -121,6 +133,8 @@
         public void SetStatu(bool statu)
         {
             ImageBG.IsSelected = NameBtn.IsSelected = statu;
+            NameBtn.IsBold = statu;
         }
+
     }
 }

--
Gitblit v1.8.0