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

Selected element/summary

1 Answer 35 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Marita
Top achievements
Rank 1
Marita asked on 15 May 2014, 11:50 AM
I need to change the color of selected elements and summarys, and I cant find anything on how to do this.
can you provide some information or a sample on how this is done?

1 Answer, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 16 May 2014, 09:26 AM
Hi Marita,

In order to change the selected state color of EventContainers and SummaryContainers we need to alter their control templates and set the desired color for their selected state representation. Then we should change the EventContaierStyle and the SummaryContainerStyle to set the Template of these containers to the changed ones. Information about styling and theming the RadGanttView can be found here and here.

Please find attached a sample project that changes the SummaryContainerTemplate (<Path x:Name="RightMarkerSelected" ..>,  <Path x:Name="LeftMarkerSelected" ... > and <Border x:Name="BackgroundBorderSelected" ... > )  and EventContainerTemplate (<Rectangle x:Name="CommonStatesVisual" .. >) and changes the selected color to Red. Note that the project uses Implicit Styles.

Regards,
Polya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GanttView
Asked by
Marita
Top achievements
Rank 1
Answers by
Polya
Telerik team
Share this question
or