views:

92

answers:

2

Hey guys.

I want to make a WPF Grid in which users can drag and drop controls from one cell to another and when the user is dragging I need to draw tips on the screen, like arrows. It's as if the tips were in ANOTHER LAYER in the screen. That is, they are not drawn IN the grid I mentioned.

The problem is: I don't know how to OVERLAP a "transparent" canvas over my Grid so that I can draw on it.

Do you experienced guys have some tip? THANKS.

+2  A: 

I think what you are looking for are Adorners. You can read something about them here: http://marlongrech.wordpress.com/2008/02/28/wpf-overlays-or-better-adorner/

eWolf
I appreciate your attention.With adorners... can I draw wherever I want? I mean... my tips will not follow the mouse, they will appear over particular places.
Ciwee
It looks pretty much what I'm looking for. Thanks!
Ciwee
Yes, an Adorner is like a layer above any control you choose. You can draw something or put any other controls in the adorner.
eWolf
+1  A: 

Heres an example with a listView control, pretty good.

Heres a tut also decent.

And even a section in msdn

almog.ori
I appreciate your attention. I'll take a look at it.
Ciwee