Event that is triggered if a port has been removed from its owner. This event will also be triggered prior to the removal of the corresponding owner of the port.

Namespace: yWorks.yFiles.UI.Model
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version:


event ItemEventHandler<IPort> PortRemoved
Visual Basic
Event PortRemoved As ItemEventHandler(Of IPort)


Implementations may choose to use the PortEventArgs to carry additional port owner information. The Owner property will be set to the the owner of the port that owned it before the removal.

This event is intended to provide notification of low level changes in the graph structure. Please use the DeletedItem event if you are interested only in port removal events that result from user interaction. Note:You may not modify the graph in the event handler for this event. Especially you may not prevent/undo the port removal that has triggered this event.

See Also