We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Deny overlapping of controls

Hello Team,
Can u pleas let me know if WPF- Diagraming component supports detection of overlapping.
If so can you please let me know the following:
1. How to detect overlapping
2. Auto-align/Auto-position overlapped nodes
2. Any samples which can highlight this feature

Thanks..

3 Replies

RA Ranjitha Amirthalingam Syncfusion Team June 9, 2016 11:47 AM UTC

Hi Rohan, 
 
Thanks for contacting Syncfusion Support. 
 
Requirement: Need to detect the intersection/overlap state. 
 
We have provided support to achieve your requirement in SfDiagram. We have provided support for events (DragEnter, DragOver, DragLeave) to notify the intersection/overlap state. We have explained in detail as below.  
 
Event Name 
Functionality 
DragEnter 
This event will fire when one Node starts to intersect with other Node. 
DragOver 
This event will fire when one Node drag(mouse) over the other Node. 
DragLeave 
This event will fire when drag leaves the other Node, without dropping on another Node. 
ItemDrop 
This event will fire when one Node dropped on the other Node. 
 
We have provided simple sample to represent these events. Please refer to the sample as below and test the sample with the above patch. 
Sample Link: Events_Sample
 
 
 
 
 
 
 
 
Regards, 
Ranjitha A. 
 
 



RO Rohan June 10, 2016 04:35 PM UTC

Hi,
Thanks for the demo.
Is something similar available in the classic version i.e. Syncfusion.Diagram.WPF

Also; can you tell me if we can detect this once the items are dropped and diagram is create (maybe on click of a external button)
I found one link in your forum but I cannot download the  same.
Can you please re-upload the solution align with any comments.

regards,
Rohan


RA Ranjitha Amirthalingam Syncfusion Team June 13, 2016 12:25 PM UTC

Hi Rohan, 
 
Please find the response to your queries as below. 
 
 
S.No 
Query 
Response 
1 
Is something similar available in the classic version i.e. Syncfusion.Diagram.WPF. 
Also; can you tell me if we can detect this once the items are dropped and diagram is create (maybe on click of an external button) 
 
We have provided support in SfDiagram. But, we  don’t have support for the requested feature in DiagramControl (Classic). 
2 
I found one link in your forum but I cannot download the  same. 
Can you please re-upload the solution align with any comments. 
 
We have provided the sample shared in the forum #104469.Please refer to the sample from the following link. 
 
 
 
 
 
 
 
 
 
 
 
Regards, 
Ranjitha A. 


Loader.
Live Chat Icon For mobile
Up arrow icon