Drag & Drop For Elements Underneath A Border

Nathan Sokalski 4,111 Reputation points
2020-05-08T19:34:20.643+00:00

I have a Border with Background="#50FFFFFF". As you will notice, the A component (the opacity) of the color is less than 255, making the Border partially see-through. I use this Border to lighten the appearance of several elements underneath it (this was much easier than modifying the details of all the other controls & their Styles). However, it prevents me from using Drag & Drop to drop elements onto the elements underneath it. Is there any way to allow the Drag & Drop events (such as DragEnter) to be detected by the elements underneath the Border? Thanks.

Developer technologies | Universal Windows Platform (UWP)

Answer accepted by question author

Nathan Sokalski 4,111 Reputation points
2020-05-10T15:09:24.79+00:00

I found my answer, I just needed to add IsHitTestVisible="False" to the overlay Border. I didn't realize this would be necessary in this scenario, but it fixed the problem, so I guess it has the title of Answer!

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.