Styling multi content buttons in WPF
Benny Skjold Tordrup <[email protected]> Sat, 28 Jun 2008 12:41:08 +0200
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <004301c8d90b$798c3ac0$6ca4b040$@net> |
Hi all I have a style for at WPF button that changes the foreground color of the button content when the button is disabled or pressed. This works fine if I only add a text to the contents or use a single control as content. If I then use a Grid as content in the button in order to make a more sophisticated content, the above tricks do not work. I assume that it is because WPF tries to set the foreground property directly on a single control content - which I do not have in this case. Any ideas? Med venlig hilsen / Best regards Benny Tordrup