Change Dealline color in Telerik Gantt view

2 posts, 0 answers
  1. soham
    soham avatar
    7 posts
    Member since:
    Oct 2016

    Posted 30 Nov 2016 Link to this post

    Hello,

    I want to Change Deadline forecolor to Blue of Telerik Gantt view. Now it is in Red color.

    Please help me.

    Thanks in advance

  2. Martin
    Admin
    Martin avatar
    105 posts

    Posted 02 Dec 2016 Link to this post

    Hello,

    You could set a global implicit style for the DeadlineContainer as such, similar to how you would do for the other containers:
    <Style BasedOn="{StaticResource DeadlineContainerStyle}" TargetType="{x:Type telerik:DeadlineContainer}">
      <Setter Property="Template">
        <Setter.Value>
          <ControlTemplate TargetType="{x:Type telerik:DeadlineContainer}">
            <Rectangle Height="{Binding ActualHeight, RelativeSource={RelativeSource TemplatedParent}}" Fill="Blue" Width="1" />
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>


    Regards,
    Martin
    Telerik by Progress
    Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Back to Top