I\'m trying to trap mouse events in WPF by using a topmost, transparent non-modal window. I\'m finding that this works fine if the opacity of the window is 0.01 or greater
For example i think your control name is MyGrid
and you want it be Transparent
and always get MouseOverEvent
.....
If (window AllowsTransparency
is True
and the window Background
is Transparent
) Then
use a color like
#01777777
forMyGrid
Background
Or0.01
forMyGrid
Opacity
.
Else
use something like
#00777777
forMyGrid
Background
Or0.00
forMyGrid
Opacity
.