Handle all mouse events

I’m making a custom UI navigation system (arrows and etc.).

I have different styles for some elements depending on their states (hovered, disabled…) which I swap manually.
But I have an problems with mouse hovering, I can’t manually do it, because when mouse hoveres an element, its styles are swapping automatically.

I’ve tried to send “Handled” to an overwritten mouse event and methods, but had no luck in resolving my problem.

Is there any way I can stop mouse from triggering styles swapping?

Still active

Still active