Articles in this section
Category / Section

Hpw to detect intersection in Diagramming elements in WinRT Diagram?

1 min read

We have provided support for ItemDropEvent of SfDiagram to detect the intersection/overlap of diagramming elements (Nodes and Connectors). We have provided AllowDrop constraints to invoke the ItemDropEvent when intersection happened. We have provided code example and sample to represent this. Please refer to the sample and code example as below.

C#

node.Constraints = node.Constraints | NodeConstraints.AllowDrop;
 
(diagram.Info as IGraphInfo).ItemDropEvent += MainWindow_ItemDropEvent;
 
void MainWindow_ItemDropEvent(object sender, ItemDropEventArgs args)
        {
            //enter your code here
        }
 
//Here, node is the instance of the Node.

 

 

 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied