views:

189

answers:

2

I have an image with source set by a ValueConverter.

When the bound object raises a ProprtyChanged event (from INotifyPropertyChanged), the image does not change. I assume it is because WPF doesn't know what fields the converter looks at.

How do I tell WPF to rebind/rerun this converter when a certain property changes?

A: 

The answer here was to use data triggers, not value converters. The trigger is bound directly to the property, and picks up the propertychanged event. Also, saves writing a bunch of one-time value converters.

Christopher
A: 

And if you really intent on writing a ValueConverter, may be use a MultiValueConverter with all the values that you want the WPF framework to monitor. Any changes to those values, and the framework would update the value it is binded to.

Trainee4Life