I have ListViewone that acts as a drag target for drag and drop operations. When the list is empty, I put TextBlockon top of it a message informing users that they can drag there (both controls are contained in the same cell Gridto enable overlapping). But ... since it TextBlockis on top ListView, it intercepts various events related to drag and drop, and does not allow you to remove things from the message body itself.
I really don't want to add a drop handler in TextBlock- is there a way I can just make it transparent for drag and drop operations?
Something that came to me at the time of writing, which works, is to put the text under the list in Z-order, and then give the list a transparent background. But is this really the right way to achieve this? Ideally, there would be a way to give text one ZIndexfor rendering and another for testing hits.
source
share