1

How do you get rid of the default WPF style for a given control? For instance:

If I add a trigger that changes the background color of a button on mouse over, it does so, but then immediately fades into the default blue tint. Is there a correct way to get rid of these so they don't get in the way of custom styles?

Wilson
  • 8,570
  • 20
  • 66
  • 101
  • Does this help? http://mark-dot-net.blogspot.com.au/2007/07/creating-custom-wpf-button-template-in.html – Rhexis Jan 21 '13 at 06:58

1 Answers1

1

I guess you looking for something like this or just take a look on the OverridesDefaultStyle Property. If you have any troubels with the default Style you can simply disable it, but this will make a lot of work because you forced to write all your style behaviors by yourself.

Community
  • 1
  • 1
Venson
  • 1,772
  • 17
  • 37