A simple implementation of an IHandleProvider that returns all handles in the lookup of the ports owned by the given owner.

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


public class PortsHandleProvider : IHandleProvider
Visual Basic
Public Class PortsHandleProvider _ Implements IHandleProvider


Using this class to display port handles will result in exceptions if the underlying port instances are removed from the graph while the handles are displayed. This can happen, for example, through Undo or if ports are removed programmatically with Remove(IPort). In that case, you need to query the handles again before interacting with the graph, for example by temporarily unselecting and reselecting the port-owning nodes.

Inheritance Hierarchy


See Also