I’ve been working with WPF for a couple of days now and I’ve pre-designed my project in photoshop. Now, I’m on my way to WPF development. The problem, however, is the following: Is there a way to block windows’ themes? What I mean by that is that e.g. when creating a button it’ll be styled the way I want it to be, but the hover/click events will still overwrite the design, which ultimately looks completely wicked. In a really bad way.
I guess, what I might be looking for is an equivalent to the wildcard accessible in css…
2
Answers
Yes, you can override any of the windows themes by applying your own control templates. The hover/click events are part of these templates.
If you make the control templates part of a resource, you can then reuse them across all your controls.
The default templates can be found here: http://msdn.microsoft.com/en-us/library/aa970773(v=vs.110).aspx
Button styles and templates can be found here : http://msdn.microsoft.com/en-us/library/ms753328(v=vs.110).aspx
I understand you problems so if you want to make a complete customize button according to you then you can use
Template
property of button.You can write some style code in windows resources section.