Short version: how can I drag/drop into a transparent window.
I have a transparent borderless window with a transparent canvas in it. The canvas can hold usercontrols that can be dragged around (like gadgets, widgets).
I want the user to be able to click anywhere outside the gadgets but within the canvas and hit whatever that is behind, like other windows from other programs or icons on the desktop for example. This is easy because everything is transparent except the
gadgets. The problem comes when I want to drag new gadgets in from another window. When the window and canvas is transparent, it is not allowed to drop anything on them... (the drop target canvas is not registering any mouse events)
So what I want is some kind of partial HitTestVisibility. For MouseDown in the canvas, it should be HitTestVisible=false, but when I drag something (my own stuff, not files for example) over the canvas, it should be able to drop it.
I have tried setting the opacity of the background to 0.01 when entering the window with the mouse, that works sometimes if I have a small border that the mouseenter event can trigger on, but if I move the mouse to fast, it wont work.... So a 100% fool proof
way of enabling Drop on a transparent control would be nice :)
View Complete Post