WPF - Disabled look for Button
If you check online forums, one of the issues that has caused possibly most grievances is the styling of the WPF button control. You set some property values for things like foreground color and background color and when you run the application things don't always work out. Either the button will show some default animation when having focus or will not use the specified background when is in disabled state.
Recently a colleague was styling a Button control and had a need for custom disabled look and we landed in the same problem. We had set a background color, but when disabled the button will default to the light gray color. Trying various options didn't work out. Interestingly the properties like Foreground or Opacity worked fine. The designer in us said that we can always create a custom style, but the developer in us wanted to know why this doesn't work.


) and I wanted to take a break from that. And another reason is that I had started blogging on ASP.NET 2.0 Ajax extensions and I wanted to complete a series of blogs on that, before I focus on others. However, the recent whitepaper published at MSDN