WPF: Unable to set the background color for a custom control when control is disabled in XAML?

You cannot set the background explicitly to white and then override it with a style-applied value. A style value is "weaker" than what is called a local value and will never override it. Just move your white background setting into the style as well and it should work.

If so, the problem is with the binding in your trigger. – Rick Sladkey Apr 21 at 21:37 Feel free to edit your question (add at the bottom) instead of trying to include new code in comments. – Rick Sladkey Apr 21 at 21:38 Thank you, thank you, thank you!

I changed the datatrigger to a regular trigger and set the property to "IsEnabled" and with the "White" background in the style, it works! – Brian Apr 21 at 21:40.

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