One way of dynamically changing the color of the RadDiagramConnection content is by checking if the content value matches a certain requirement and that is done by changing the Foreground property. I am attaching a code snippet for your convenience:
this.diagramConnection.Foreground = Brushes.Red;
As well as the snippet I am attaching an example project for a possible solution to your question.
Regards,
Stenly
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.