Search code examples
wpfbuttonmouseover

How to remove default mouse-over effect on WPF buttons?


My problem is that in WPF, whenever I try and change the colour of a button's background using triggers or animations, the default mouseover effect (of being grey with that orange glow) seems to take priority.

After extensive searches I'm clueless as to how to remove this effect.


Solution

  • You need to create your own custom button template to have full control over the appearance in all states. Here's a tutorial.