<ProgressBar Value="{Binding Player1PointsLife}" Minimum="0" Maximum="8000"/>
Why when value exceeds maximum or minimun, it doens’t update the UI anymore? How can I fix it?
Thanks in advance.
UPDATE:
Maybe I was not very clear. I mean, I set in progress bar value = 2000 (all right, updates de UI), then I set -1000 (it’s correct, it mustn’t show anything in the progress bar), and finally I set 6000 (here must updates the UI, but it isn’t updating anymore).
Write a WPF converter so that if the value is >8000 or <0 it sets the value according to your requirement. Set the converter as follows in XAML: