public void AddToSurface(DiagramSurface surface) { Surface = surface; Surface.Children.Add(this); SourceEndPoint = new ConnectorEndPoint(this); TargetEndPoint = new ConnectorEndPoint(this); // Setup ConnectorEndPoints if (DrawingStrategy != null && DrawingStrategy.OverrideConnectorEndPointSetup) { DrawingStrategy.CustomSetupConnectorEndPoint(this); } SetupSourceConnectorEndPoint(); SetupTargetConnectorEndPoint(); SourceEndPoint.AddToSurface(surface); TargetEndPoint.AddToSurface(surface); // Setup Adorners AdornerLayer layer = AdornerLayer.GetAdornerLayer(this); if (layer == null) return; SetupRelationshipNameAdorner(layer); //SetupSourceCardinalityAdorner(layer); //SetupTargetCardinalityAdorner(layer); }