http://vivekdalvi.wordpress.com/2008/04/13/templatable-control-progressbar/