WPF Trigger when Property and Data value are true

Posted by KrisTrip on Stack Overflow See other posts from Stack Overflow or by KrisTrip
Published on 2010-05-27T14:08:21Z Indexed on 2010/05/27 14:11 UTC
Read the original article Hit count: 315

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf