A straightforward implementation of an IPortLocationModel for IPorts at INodes that determine the location dynamically using the Layout.

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

Syntax

C#
[SingletonSerializationAttribute] public sealed class NodeScaledPortLocationModel : IPortLocationModel, ILookup
Visual Basic
<SingletonSerializationAttribute> _ Public NotInheritable Class NodeScaledPortLocationModel _ Implements IPortLocationModel, ILookup

Remarks

Internally the location is stored as the ratio by which the Width and Height of the Layout need to be scaled to obtain the offset to the center of the node layout.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.UI.PortLocationModels..::..NodeScaledPortLocationModel

See Also