开发者

Silverlight progress bar tri color

开发者 https://www.devze.com 2023-03-12 17:39 出处:网络
Is it possible to make the progress bar in silverlight tri color? i.e red for % error green for % Success/Completed and grey for remaining.

Is it possible to make the progress bar in silverlight tri color? i.e red for % error green for % Success/Completed and grey for remaining.

Many开发者_开发技巧 thanks, Jane


not possible with a progress bar, try creating your own control.


The link below is another example of changing the color of a ProgressBar element. Note though that this is the ProgressBar, not the BusyIndicator which does not allow color change (in case that's what you were using). They are otherwise virtually interchangeable.

http://www.silverlightshow.net/items/The-ProgressBar-control-in-Silverlight-2.aspx

To do tri-color you just need to change the foreground color on the fly as your criteria changes.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号