Using binding for the Value property of DataTrigger condition?

No, it is not possible. As the error message says, only dependency properties can be targets of WPF bindings, and DataTrigger. Value is not a dependency property.So you will need to assign an actual value The workaround is to use a MultiBinding whose child Bindings are the two bindings you want to compare, with an IMultiValueConverter which returns true if the two inputs are equal and false if they are unequal.

The DataTrigger can then use that MultiBinding, and a Value of True.

No, it is not possible. As the error message says, only dependency properties can be targets of WPF bindings, and DataTrigger. Value is not a dependency property.So you will need to assign an actual value.

The workaround is to use a MultiBinding whose child Bindings are the two bindings you want to compare, with an IMultiValueConverter which returns true if the two inputs are equal and false if they are unequal. The DataTrigger can then use that MultiBinding, and a Value of True.

Thx! I'll try the workaround first thing tomorrow. – stiank81 Feb 10 '10 at 21:24 Works just excellent - thx!

– stiank81 Feb 11 '10 at 11:40.

To elaborate on the answer: here is an example of how it's done.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions