Selected element/summary

2 posts, 0 answers
  1. Marita
    Marita avatar
    6 posts
    Member since:
    Dec 2013

    Posted 15 May 2014 Link to this post

    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?

  2. Polya
    Polya avatar
    267 posts

    Posted 16 May 2014 Link to this post

    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.

    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.
Back to Top