From 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 19 十一月 2020 10:23:45 +0800
Subject: [PATCH] Evoyo.Home1.1.0120111601_Release

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/TopRightMenuControl.cs |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/TopRightMenuControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/TopRightMenuControl.cs
index 4593695..e09778a 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/TopRightMenuControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/TopRightMenuControl.cs
@@ -150,7 +150,10 @@
             //鍥炬爣
             var btnIcon = rowFrame.AddLeftIcon(81);
             btnIcon.UnSelectedImagePath = unSelectPic;
-            btnIcon.SelectedImagePath = selectPic;
+            if (selectPic != null)
+            {
+                btnIcon.SelectedImagePath = selectPic;
+            }
             //鏄剧ず鏂囧瓧
             var btnText = rowFrame.AddLeftCaption(TextValue, RowWidth - 173);
             btnText.X = Application.GetRealWidth(173);
@@ -215,7 +218,14 @@
             var btnIcon = (IconViewControl)frame.GetChildren(0);
             if (btnIcon != null)
             {
-                btnIcon.IsSelected = select;
+                if (select == true && string.IsNullOrEmpty(btnIcon.SelectedImagePath) == true)
+                {
+                    //濡傛灉涓嶈缃繖寮犲浘鐗�,鍒欎粈涔堥兘涓嶅仛
+                }
+                else
+                {
+                    btnIcon.IsSelected = select;
+                }
             }
             //鏂囨湰
             var btnText = (NormalViewControl)frame.GetChildren(1);

--
Gitblit v1.8.0