Mouse hover in WPF
I'm facing a problem of implementing mouse hover event in WPF . First there is no such event in WPF , and second I need to make a similar event to be routed event. I mean, I have a global window , and I want to declare on it something like ButtonBase.MouseHover , so I'll handle this event each time I hover any button on the screen .
Any sugges开发者_JAVA技巧tion . Best regards Wasim ...
How about MouseEnter ? Serves the same purpose :)
The MouseHover function is split into two parts in WPF: MouseEnter and MouseLeave.
If you want to repeat event each ms you should use mouseMove
Or if you want to execute once when the mouse hover on the object...
you should use mouseEnter
and MouseLeave
You could create an attached property and then do exactly that.
If its just on buttons, you could always specify custom tooltip stuff, couldn't you?
精彩评论