Progressbar foreground color

Morvader picture Morvader · Jan 19, 2011 · Viewed 49k times · Source

Does anybody know how to change the foreground color of a WPF-Progressbar. It always seems to be merged with green.

Answer

Kishore Kumar picture Kishore Kumar · Jan 19, 2011

just try with this

   <ProgressBar Height="25" IsIndeterminate="True" Width="150" Foreground="Red" ></ProgressBar>

If it is not working as you required you have to modify the Style or ControlTemplate of Progressbar.

To do that you can use Expression Blend from Microsoft or you can get a copy the existing template and modify it.