A
A
Andrey Smirnov2019-12-08 19:52:13
.NET
Andrey Smirnov, 2019-12-08 19:52:13

How to disable styling on button hover?

When creating a Button in a WPF form, the button looks like this by default: On
5ded2a299825b429704523.png
hover it looks like this:
5ded2a36eb3fb676183641.png
How can I cancel it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Abr_ya, 2019-12-09
@Abr_ya

Remove all styles that differ from the "original" ones from the button:hover {
...
} state.
If you can't just remove them, rewrite them to those styles that "just a button" has, but this will already be a bit of a crutch, it seems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question