Articles in this section
Category / Section

How to get base node interface while dropping a symbol from stencil to WPF Diagram (SfDiagram)?

1 min read

The ItemAdded event will get invoked when symbol dropped to WPF Diagram (SfDiagram) from Stencil. An ItemAddedEventsargs will help to identify the dropped Node. Please refer to the code snippet as below.

C#

void MainWindow_ItemAdded(object sender, ItemAddedEventArgs args)
{
  if (args.ItemSource == ItemSource.Stencil)
  {
    var dropedItem = args.Item as INode;   
  }
}

 

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