i have already checked the below question but i didnt get completely as i am new to WPF.
Is there a way to change the color of a WPF progress bar via binding to a view model property
If you have any sample please provide me.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could bind the ProgressBar’s
Foregroundproperty to itsValueproperty by using a value converter which converts fromdoubletoBrush, like shown in the example below. Note that for testing the ProgressBar’sValueproperty is also bound, in particular to theValueproperty of a Slider control.The binding value converter could look like this: