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
2010-05-31 10:54:47
Thanks alexander.
Justin
2010-06-03 04:19:19