I need to be able to change the Style
of a control when a property and data value are true. For example, my bound data has an IsDirty
property. I would like to change the background color of my control when IsDirty
is true AND the control is selected. I found the MultiTrigger
and MultiDataTrigger
classes...but in this case I need to somehow trigger on data and property. How can I do this?
Another note: I need to be able to do this in code behind not XAML.