This is a migrated thread and some comments may be shown as answers.

How to change dependency lines(relation) color

1 Answer 106 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Mastan
Top achievements
Rank 1
Mastan asked on 30 Jan 2017, 01:48 PM

Greetings,

I want to change default color of relations. 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 02 Feb 2017, 07:28 AM
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.
Tags
GanttView
Asked by
Mastan
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or