I’m wanting a progress bar to change it’s color depending on the range the current value is currently in. I was wondering if there was an attribute on the progress bar that I could bind a view model property to to change the color. Does such an attribute exist on the WPF progressbar?
Share
Just change the foreground color to the color you like:
Edit (answering your comment): Yes, you need a
Brushproperty (Almost all color properties are Brushed in WPF)But don’t worry it’s very simple:
And the property: