Hi Dan,
If you want to fire a event when you select the node then you have write your own delegate. Please refer to the following code snippet
Public Delegate Sub NodeSelection(ByVal sender As Object, ByVal evtargs As CollectionExEventArgs)
Public Event evtnodeselection As NodeSelection
AddHandler evtnodeselection, AddressOf MainForm_evtnodeselection
'Fire the NodeSelection Event
Private Sub MainForm_evtnodeselection(ByVal sender As Object, ByVal evtargs As CollectionExEventArgs)
Dim node As Node = CType(IIf(TypeOf evtargs.Element Is Node, evtargs.Element, Nothing), Node)
Console.WriteLine(node.Name)
End Sub
'NodeCollectionChanged event
Private Sub EventSink_NodeCollectionChanged(ByVal evtArgs As CollectionExEventArgs)
Dim controller As DiagramController = Me.diagram1.Controller
Dim node As Node = CType(IIf(TypeOf evtArgs.Element Is Node, evtArgs.Element, Nothing), Node)
If Not node Is Nothing Then
If node Is controller.SelectionList.First Then
'Fire the NodeSelection event
RaiseEvent evtnodeselection(Me, evtArgs)
End If
End If
End Sub
I have attached the sample that demonstrates this completely.
http://websamples.syncfusion.com/samples/Diagram.Windows/F65575/main.htmPlease refer to the sample and let me know if you have any questions.
Thanks,
Nagaraj