|
<sync:GanttControl x:Name="Gantt" GridWidth="0"
ItemsSource="{Binding TaskCollection}"
UseAutoUpdateHierarchy="False"
VisualStyle="Metro">
...
</sync:GanttControl> |
|
private void Gantt_Loaded(object sender, RoutedEventArgs e)
{
var splitter = this.Gantt.FindElementOfType<GridSplitter>();
splitter.IsEnabled = false;
} |
|
<sync:GanttControl x:Name="Gantt" Loaded="Gantt_Loaded" GridWidth="0"
ItemsSource="{Binding TaskCollection}"
UseAutoUpdateHierarchy="False"
VisualStyle="Metro">
<sync:GanttControl.TaskAttributeMapping>
<sync:TaskAttributeMapping TaskIdMapping="Id"
TaskNameMapping="Name"
StartDateMapping="StDate"
ChildMapping="ChildTask"
FinishDateMapping="EndDate"
DurationMapping="Duration"
ResourceInfoMapping="Resource"
ProgressMapping="Complete"
PredecessorMapping="Predecessor"/>
</sync:GanttControl.TaskAttributeMapping>
</sync:GanttControl> |