Please accept my apology for the misunderstanding. I can now see the described scenario. Unfortunately this is a known issue within our RadDiagrams
- I made it public and available for tracking through our PITS. You can follow its progress here
The issue is basically caused by the RadDiagram
internal deserializaiton mechanism. It applies local values on some of the deserialized RadDiagramItem
's properties. And a style setter is never applied on a property that has a local value thus breaking your logic. As a workaround, until the issue is resolved, you can manually clear the local values of the RadDiagramConnections
LinkModel DeserializeLink(Telerik.Windows.Diagrams.Core.IConnection connection, Telerik.Windows.Diagrams.Core.SerializationInfo info)
LinkModel link =
link.SourceCapType = (CapType)Enum.Parse(
link.TargetCapType = (CapType)Enum.Parse(
link.Visibility = (Visibility)Enum.Parse(
I modified my solution accordingly so that you can download and run it locally to test the workaround. Let me know how it goes.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>