tags:

views:

19

answers:

1

I have a custom canvas that allows elements to be dragged. However I do not want to allow elements to overlap.

+1  A: 

Hi there,

you could perform a hit test using the VisualTreeHelper.HitTest method. Here's more info on that: http://msdn.microsoft.com/en-us/library/system.windows.media.geometryhittestparameters(v=VS.100).aspx

Cheers, Alex

alexander.biskop
Thanks alexander.
Justin