From 2450c12c825ad4d78d1572da2fa421706db2df2f Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 18 六月 2020 16:01:14 +0800 Subject: [PATCH] 新代码 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs index 5cd4dcd..91b3ada 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs @@ -12,6 +12,10 @@ #region 鈻� 鍙橀噺澹版槑___________________________ /// <summary> + /// 杩涘浘鏉¤兘鍚﹀線鍥炶蛋(榛樿鍙互) + /// </summary> + public bool ProgressBarGoback = true; + /// <summary> /// 浼氱Щ鍔ㄧ殑杩涘害鏉� /// </summary> private FrameLayout btnProgressBar = null; @@ -146,7 +150,7 @@ HdlThreadLogic.Current.RunMain(() => { int width = (int)(value * this.Width); - if (btnProgressBar.Width >= width) + if (this.ProgressBarGoback == false && btnProgressBar.Width >= width) { //涓嶈兘璁╄繘搴︽潯寰�鍥炶蛋 return; @@ -157,7 +161,7 @@ //鏂囨湰鏄剧ず btnProgressTextView.Text = ((int)(value * 100)) + "%"; //鏂囨湰鏄剧ず鐨勯偅涓浘鐗囨绉诲姩 - this.frameProgressBack.X = ControlCommonResourse.XXLeft + btnProgressBar.Right - frameProgressBack.Width / 2; + this.frameProgressBack.X = this.X + btnProgressBar.Right - frameProgressBack.Width / 2; } }); } -- Gitblit v1.8.0