There’s a weird interaction going on inside of my WPF application. I have styled all my buttons so they have a dark blue background with white letters. They look great, until you click on them and they get the focus. After that, the literally blink, with the background color gradually fading to a milky blue-ish white to my color choice. This is distracting to the users and has to go.
We are assuming that the ButtonChrome is responsible for this odd looking animation. So I want to change the template for my buttons so it uses a rectangle with my background color and a dashed line surrounding the text when the button has the focus. But I still want to have the button look like it’s being depressed into the application when it’s clicked.
How do I do this bit of animation efficiently without the ButtonChrome?
Tony
Use the VisualStateManager and include an animation for the Focussed and/or IsPressed states