开发者

Silverlight progress bar tri color

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜