Migrating from Telerik UI for WPF 4.0 2014.3.1021 to 2015.1.225.40 I've found the following issue.
A requirement of the project I'm working on is that some shapes must have only the 'Auto' connector (others are programmatically removed as below):
Connecting an arc from any shape to this kind of shape the connection EndPoint is equals to StartPoint, so the connection is not visible.
Adding a fake connector solves the issue, but of course is a workaround:
Another workaround - not viable for me because of existing saved diagrams - is to rename the 'Auto' connector to something else.
Is there a better solution?
Is this the desired behavior or is it a bug?
Thank you for your time.
Regards,
Manuel
A requirement of the project I'm working on is that some shapes must have only the 'Auto' connector (others are programmatically removed as below):
var connectorsToBeRemoved = shape.Connectors.Where(x => x.Name != "Auto").ToList();foreach (var connector in connectorsToBeRemoved){ shape.Connectors.Remove(connector);}Connecting an arc from any shape to this kind of shape the connection EndPoint is equals to StartPoint, so the connection is not visible.
Adding a fake connector solves the issue, but of course is a workaround:
private static void WorkaroundTelerik2015Q1(RadDiagramShape shape){ var fakeConnector = new RadDiagramConnector {Offset = shape.Connectors[0].Offset, Name = "Fake", IsEnabled = false,}; shape.Connectors.Add(fakeConnector); Canvas.SetZIndex(fakeConnector, -999);}Another workaround - not viable for me because of existing saved diagrams - is to rename the 'Auto' connector to something else.
Is there a better solution?
Is this the desired behavior or is it a bug?
Thank you for your time.
Regards,
Manuel
