question

njsokalski avatar image
0 Votes"
njsokalski asked ·

Drag & Drop For Elements Underneath A Border

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.

windows-uwp-xaml
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I think you should post here an example of your UI with this Border, maybe checking your XAML we can suggest how to have the same light effect without using the Border.

0 Votes 0 ·

1 Answer

njsokalski avatar image
0 Votes"
njsokalski answered ·

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!

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.