Example #1
0
 public ConnectorModel(ConnectionType type,
                       IBoundedSketchItemModel from, IBoundedSketchItemModel to,
                       System.Windows.Point connectorStartHint, System.Windows.Point connectorEndHint,
                       ISketchItemContainer container)
 //:base(new Guid())
 {
     ParentNode                  = container;
     _connectionType             = type;
     MiddlePointRelativePosition = 0.5;
     From = from;
     To   = to;
     _myConnectorStrategy = ConnectorUtilities.GetConnectionType(this, _connectionType, connectorStartHint, connectorEndHint);
     Label     = string.Format("{0}->{1}", from.Label, to.Label);
     LineWidth = 1;
     _geometry.Children.Add(_path);
     Initialize();
 }