RadiantQ WPF Gantt
All Task Bars
Previous Topic  Next Topic 

The following settings in the GanttControl allows you to customize the look and feel of all the task bars.


TaskItemBarFill


This setting lets you customize the fill brush of the tasks in the gantt chart.


Example:


<!--Resource section-->

<LinearGradientBrush x:Key="CustomBarFill" StartPoint="0,0" EndPoint="0,1">

    <LinearGradientBrush.GradientStops>

        <GradientStop Color="Transparent" Offset="0" />

        <GradientStop Color="LightSteelBlue" Offset="0.25" />

        <GradientStop Color="SteelBlue" Offset="1" />

    </LinearGradientBrush.GradientStops>

</LinearGradientBrush>


<!--Within the layout-->

<gantt:GanttControl x:Name="ganttControl" TaskItemBarFill="{StaticResource CustomBarFill}"/>


After adding a custom TaskItemBarFill


TaskItemBarStroke


This setting lets you customize the stroke brush of the tasks in the gantt chart.


Example:


<!--Resource section-->

<SolidColorBrush x:Key="CustomBarStroke" Color="SteelBlue"></SolidColorBrush>


<!--Within the layout-->

<gantt:GanttControl x:Name="ganttControl" Grid.Column="1"

                   TaskItemBarFill="{StaticResource CustomBarFill}" TaskItemBarStroke="{StaticResource CustomBarStroke}"/>


After adding a custom TaskItemBarStroke

(notice the difference in the bar's border and the connection lines)


TaskItemProgressFill


This setting lets you customize the fill brush of the progress bar in the tasks in the gantt chart.


<!--Resource section-->

<LinearGradientBrush x:Key="CustomProgressFill" StartPoint="0,0" EndPoint="0,1">

    <LinearGradientBrush.GradientStops>

        <GradientStop Color="Transparent" Offset="0" />

        <GradientStop Color="DarkSlateBlue" Offset="0.15" />

    </LinearGradientBrush.GradientStops>

</LinearGradientBrush>


<!--Within the layout-->

<gantt:GanttControl x:Name="ganttControl" Grid.Column="1"

                           TaskItemBarFill="{StaticResource CustomBarFill}" TaskItemBarStroke="{StaticResource CustomBarStroke}"

                           TaskItemProgressFill="{StaticResource CustomProgressFill}"/>


After adding a custom TaskItemProgressFill



� RadiantQ 2009 - 2019. All Rights Reserved.