How to change dependency lines(relation) color

2 posts, 0 answers
  1. Mastan
    Mastan avatar
    2 posts
    Member since:
    Dec 2016

    Posted 30 Jan Link to this post

    Greetings,

    I want to change default color of relations. 

  2. Yana
    Admin
    Yana avatar
    4583 posts

    Posted 02 Feb Link to this post

    Hello Mastan,

    You could take a look at the GanttView Styles topic in our documentation which explains in details how to customize the look and feel of different RadGanttView elements.

    Specifically for relations, you will need to create a Style that targets RelationContainer class, base it on RelationContainerStyle and set only the needed color, for example:


    <Style TargetType="telerik:RelationContainer" BasedOn="{StaticResource RelationContainerStyle}">
        <Setter Property="Foreground" Value="Red" />
    </Style>

    I hope this will be helpful.

    Regards,
    Yana
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top