From 0087dd7734e71dfcfd1bb54db394ad7855021ffd Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 24 七月 2020 10:18:08 +0800
Subject: [PATCH] 新版本

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs
index 1882d5f..eba0af0 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs
@@ -11,7 +11,18 @@
     {
         #region 鈻� 鍙橀噺澹版槑___________________________
 
-        private uint nowProgressBarColor = 0;
+        /// <summary>
+        /// 杩涘害鏉″彲鐢ㄦ椂鐨勮儗鏅壊
+        /// </summary>
+        private uint ProgressBarEnableColor = 0;
+        /// <summary>
+        /// 杩涘害鏉′笉鍙敤鏃剁殑鑳屾櫙鑹�(榛樿鐏拌壊)
+        /// </summary>
+        public uint ProgressBarUnEnableColor = 0xffe8e8e8;
+        /// <summary>
+        /// 褰撳墠鍙敤鐘舵��
+        /// </summary>
+        private bool nowEnable = true;
         /// <summary>
         /// 鎺т欢鑳藉惁浣跨敤
         /// </summary>
@@ -19,16 +30,20 @@
         {
             set
             {
+                //鐘舵�佹病鏈夋敼鍙�
+                if (nowEnable == value) { return; }
+                nowEnable = value;
+
                 this.IsClickable = value;
                 if (value == true)
                 {
                     //鍘熸潵鐨勯鑹�
-                    base.ProgressBarColor = nowProgressBarColor;
+                    base.ProgressBarColor = ProgressBarEnableColor;
                 }
                 else
                 {
                     //鐏拌壊
-                    base.ProgressBarColor = 0xffe8e8e8;
+                    base.ProgressBarColor = ProgressBarUnEnableColor;
                 }
             }
         }
@@ -40,7 +55,7 @@
         {
             set
             {
-                nowProgressBarColor = value;
+                ProgressBarEnableColor = value;
                 base.ProgressBarColor = value;
             }
         }

--
Gitblit v1.8.0