<!-- Gantt Control Information --> <gantt:GanttControl x:Name="Gantt"
ItemsSource="{Binding TaskDetails}"
VisualStyle="Metro"
Loaded="Gantt_OnLoaded">
</gantt:GanttControl> |
private void Gantt_OnLoaded(object sender, RoutedEventArgs e)
{
GanttChart chart = this.Gantt.FindElementOfType<GanttChart>();
if (chart != null)
{
chart.IsEnabled = false;
}
} |
<!-- GanttControl Information -->
<sync:GanttControl x:Name="Gantt"
…
<sync:GanttControl.Resources>
<Style BasedOn="{StaticResource HeaderNode}" TargetType="chart:HeaderNode" />
<Style BasedOn="{StaticResource TaskNode}" TargetType="chart:GanttNode" />
<Style BasedOn="{StaticResource MileStone}" TargetType="chart:MileStone" />
</sync:GanttControl.Resources>
…
</sync:GanttControl> |