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; } }