I am looking a way to highlight segments (in yellow) on a slider/progress bar like this:

I found some article discuss how to build customized WPF slider control by using style:
-
http://codingsense.wordpress.com/2010/02/01/customize-a-slider-in-wpf-step-by-step-tutorial/
-
http://codeblitz.wordpress.com/2009/06/12/wpf-control-templating/
But what I need is to highlight given segments on the slider bar programmatically.
For example:
//Given:
List<Rectangle> rectangles;
//And invoke
mycontrol.highlight(rectangles);
How could I do this? Or more specifically, how could I draw on the slider bar at runtime?
in slider
Property IsSelectionRangeEnabled