Class GanttControl
Represents a control, that illustrates a project schedule by displaying the progress of list of tasks/activities of a project in table view and graph notation.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Gantt
Assembly: Syncfusion.Gantt.Wpf.dll
Syntax
public class GanttControl : Control, IDisposable
Constructors
GanttControl()
Initializes a new instance of the GanttControl class.
Declaration
public GanttControl()
Fields
AllowDragDropProperty
Identifies the AllowDragDrop dependency property.
Declaration
public static DependencyProperty AllowDragDropProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty | The identifier for AllowDragDrop dependency property. |
AllowFilteringProperty
Identifies the AllowFiltering dependency property.
Declaration
public static DependencyProperty AllowFilteringProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty | The identifier for AllowFiltering dependency property. |
AllowSortingProperty
Identifies the AllowSorting dependency property.
Declaration
public static DependencyProperty AllowSortingProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty | The identifier for AllowSorting dependency property. |
AutoExpandModeProperty
Identifies the AutoExpandMode dependency property.
Declaration
public static DependencyProperty AutoExpandModeProperty
Field Value
| Type | Description |
|---|---|
| System.Windows.DependencyProperty | The identifier for AutoExpandMode dependency property. |
BaseCellMaxLengthProperty
The DependencyProperty for BaseCellMaxLength property.
Declaration
public static readonly DependencyProperty BaseCellMaxLengthProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
BaseCellMinLengthProperty
The DependencyProperty for BaseCellMinLength property.
Declaration
public static readonly DependencyProperty BaseCellMinLengthProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
BaselineColorProperty
The DependencyProperty for BaselineColor property.
Declaration
public static readonly DependencyProperty BaselineColorProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
BaselineStrokeThicknessProperty
The DependencyProperty for BaselineStrokeThickness property.
Declaration
public static readonly DependencyProperty BaselineStrokeThicknessProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ChartWidthProperty
The DependencyProperty for ChartWidth property.
Declaration
public static readonly DependencyProperty ChartWidthProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ConnectorStrokeProperty
The DependencyProperty for ConnectorStroke property.
Declaration
public static readonly DependencyProperty ConnectorStrokeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CriticalPathBrushProperty
The DependencyProperty for CriticalPathBrush property.
Declaration
public static readonly DependencyProperty CriticalPathBrushProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CurrentDateLineProperty
The DependencyProperty for CurrentDateLine property.
Declaration
public static readonly DependencyProperty CurrentDateLineProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CustomScheduleSourceProperty
The DependencyProperty for CustomScheduleSource property.
Declaration
public static readonly DependencyProperty CustomScheduleSourceProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
DefaultEndTimeProperty
The DependencyProperty for DefaultEndTime property.
Declaration
public static readonly DependencyProperty DefaultEndTimeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
DefaultStartTimeProperty
The DependencyProperty for DefaultStartTime property.
Declaration
public static readonly DependencyProperty DefaultStartTimeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
EndPointProperty
The DependencyProperty for EndPoint property.
Declaration
public static DependencyProperty EndPointProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
EndTimeProperty
The DependencyProperty for EndTime property.
Declaration
public static DependencyProperty EndTimeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ExcludeHolidaysProperty
The DependencyProperty for ExcludeHolidays property
Declaration
public static readonly DependencyProperty ExcludeHolidaysProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ExcludeWeekendsProperty
The DependencyProperty for ExcludeWeekends property
Declaration
public static readonly DependencyProperty ExcludeWeekendsProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
FiscalYearBeginsOnProperty
The DependencyProperty for FiscalYearBeginsOn property.
Declaration
public static DependencyProperty FiscalYearBeginsOnProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
GridHeaderBackgroundProperty
The DependencyProperty for GridHeaderBackground property.
Declaration
public static readonly DependencyProperty GridHeaderBackgroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
GridHeaderForegroundProperty
The DependencyProperty for GridHeaderForeground property.
Declaration
public static readonly DependencyProperty GridHeaderForegroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
GridWidthProperty
The DependencyProperty for GridWidth property.
Declaration
public static readonly DependencyProperty GridWidthProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
HighlightedItemsProperty
The DependencyProperty for HighlightedItems property.
Declaration
public static readonly DependencyProperty HighlightedItemsProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
HighlightItemBrushProperty
The DependencyProperty for HighlightItemBrush property.
Declaration
public static readonly DependencyProperty HighlightItemBrushProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
HolidaysProperty
Identifies the Holidays dependency property.
Declaration
public static readonly DependencyProperty HolidaysProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
IsFiscalYearNumberingEnabledProperty
The DependencyProperty for IsFiscalYearNumberingEnabled property.
Declaration
public static DependencyProperty IsFiscalYearNumberingEnabledProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ItemsSourceProperty
The DependencyProperty for ItemsSource property.
Declaration
public static DependencyProperty ItemsSourceProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LayoutModeProperty
The DependencyProperty for LayoutMode property.
Declaration
public static readonly DependencyProperty LayoutModeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
NodeCreatedEvent
The DependencyProperty for NodeCreated property.
Declaration
public static readonly RoutedEvent NodeCreatedEvent
Field Value
| Type |
|---|
| System.Windows.RoutedEvent |
NodeDragCompletedEvent
The DependencyProperty for NodeDragCompleted property.
Declaration
public static readonly RoutedEvent NodeDragCompletedEvent
Field Value
| Type |
|---|
| System.Windows.RoutedEvent |
NodeDragDeltaEvent
The DependencyProperty for NodeDragDelta property.
Declaration
public static readonly RoutedEvent NodeDragDeltaEvent
Field Value
| Type |
|---|
| System.Windows.RoutedEvent |
NodeResizingCompletedEvent
The DependencyProperty for NodeResizingCompleted property.
Declaration
public static readonly RoutedEvent NodeResizingCompletedEvent
Field Value
| Type |
|---|
| System.Windows.RoutedEvent |
NodeResizingDeltaEvent
The DependencyProperty for NodeResizingDelta property.
Declaration
public static readonly RoutedEvent NodeResizingDeltaEvent
Field Value
| Type |
|---|
| System.Windows.RoutedEvent |
NonWorkingHoursBackgroundProperty
The DependencyProperty for NonWorkingHoursBackground property.
Declaration
public static DependencyProperty NonWorkingHoursBackgroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ProgressIndicatorBackgroundProperty
The DependencyProperty for ProgressIndicatorBackground property.
Declaration
public static DependencyProperty ProgressIndicatorBackgroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ResourceCollectionProperty
The DependencyProperty for ResourceCollection property.
Declaration
public static readonly DependencyProperty ResourceCollectionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ResourceContainerCreatedEvent
The DependencyProperty for ResourceContainerCreated property.
Declaration
public static readonly RoutedEvent ResourceContainerCreatedEvent
Field Value
| Type |
|---|
| System.Windows.RoutedEvent |
ResourceContainerTemplateProperty
The DependencyProperty for ResourceContainerTemplate property.
Declaration
public static readonly DependencyProperty ResourceContainerTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ResourceContainerTemplateSelectorProperty
The DependencyProperty for ResourceContainerTemplateSelector property.
Declaration
public static readonly DependencyProperty ResourceContainerTemplateSelectorProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ResourceNamePlacementProperty
The DependencyProperty for ResourceNamePlacement property.
Declaration
public static readonly DependencyProperty ResourceNamePlacementProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ResourceNameVisibilityProperty
The DependencyProperty for ResourceNameVisibility property.
Declaration
public static DependencyProperty ResourceNameVisibilityProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
RowHeightProperty
The DependencyProperty for RowHeight property.
Declaration
public static readonly DependencyProperty RowHeightProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ScheduleBackgroundProperty
The DependencyProperty for ScheduleBackground property.
Declaration
public static DependencyProperty ScheduleBackgroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ScheduleBorderBrushProperty
The DependencyProperty for ScheduleBorderBrush property.
Declaration
public static DependencyProperty ScheduleBorderBrushProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ScheduleBorderThicknessProperty
The DependencyProperty for ScheduleBorderThickness property.
Declaration
public static DependencyProperty ScheduleBorderThicknessProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ScheduleCellCreatedEvent
The DependencyProperty for ScheduleCellCreated property.
Declaration
public static readonly RoutedEvent ScheduleCellCreatedEvent
Field Value
| Type |
|---|
| System.Windows.RoutedEvent |
ScheduleForegroundProperty
The DependencyProperty for ScheduleForeground property.
Declaration
public static readonly DependencyProperty ScheduleForegroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ScheduleRangePaddingProperty
The DependencyProperty for ScheduleRangePadding property.
Declaration
public static readonly DependencyProperty ScheduleRangePaddingProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ScheduleTypeProperty
The DependencyProperty for ScheduleType property.
Declaration
public static DependencyProperty ScheduleTypeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
SelectionBrushProperty
Identifies the SelectionBrush property.
Declaration
public static readonly DependencyProperty SelectionBrushProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
SelectionModeProperty
Identifies the SelectionModeProperty property.
Declaration
public static readonly DependencyProperty SelectionModeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowAddNewColumnProperty
The DependencyProperty for ShowAddNewColumn property.
Declaration
public static readonly DependencyProperty ShowAddNewColumnProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowBaselineProperty
The DependencyProperty for ShowBaseline property.
Declaration
public static readonly DependencyProperty ShowBaselineProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowChartLinesProperty
The DependencyProperty for ShowChartLines property.
Declaration
public static readonly DependencyProperty ShowChartLinesProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowCriticalPathProperty
The DependencyProperty for ShowCriticalPath property.
Declaration
public static readonly DependencyProperty ShowCriticalPathProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowDateWithTimeProperty
The DependencyProperty for ShowDateWithTime property.
Declaration
public static readonly DependencyProperty ShowDateWithTimeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowGridCellToolTipProperty
Identifies the ShowGridCellToolTip property.
Declaration
public static readonly DependencyProperty ShowGridCellToolTipProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowGridLinesOnZoomingProperty
The DependencyProperty for ShowGridLinesOnZooming property.
Declaration
public static readonly DependencyProperty ShowGridLinesOnZoomingProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowHolidaysProperty
The DependencyProperty for ShowHolidays property
Declaration
public static readonly DependencyProperty ShowHolidaysProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowNonWorkingHoursBackgroundProperty
The DependencyProperty for ShowNonWorkingHoursBackground property.
Declaration
public static readonly DependencyProperty ShowNonWorkingHoursBackgroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowResizingTooltipProperty
The DependencyProperty for ShowResizingTooltip property.
Declaration
public static readonly DependencyProperty ShowResizingTooltipProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowStripLinesProperty
The DependencyProperty for ShowStripLines property.
Declaration
public static readonly DependencyProperty ShowStripLinesProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowWeekendsProperty
The DependencyProperty for ShowWeekends property
Declaration
public static readonly DependencyProperty ShowWeekendsProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
SplitTaskAttributeMappingProperty
The DependencyProperty for SplitTaskAttributeMapping property.
Declaration
public static readonly DependencyProperty SplitTaskAttributeMappingProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
StartPointProperty
The DependencyProperty for StartPoint property.
Declaration
public static DependencyProperty StartPointProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
StartTimeProperty
The DependencyProperty for StartTime property.
Declaration
public static DependencyProperty StartTimeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
StickCurrentDateLineToProperty
The DependencyProperty for StickCurrentDateLineTo property.
Declaration
public static DependencyProperty StickCurrentDateLineToProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
StripLineCreatedevent
The DependencyProperty for StripLineCreated property.
Declaration
public static readonly RoutedEvent StripLineCreatedevent
Field Value
| Type |
|---|
| System.Windows.RoutedEvent |
StripLinesProperty
The DependencyProperty for StripLines property.
Declaration
public static readonly DependencyProperty StripLinesProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
TaskAttributeMappingProperty
The DependencyProperty for TaskAttributeMapping property.
Declaration
public static DependencyProperty TaskAttributeMappingProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
TaskNodeBackgroundProperty
The DependencyProperty for TaskNodeBackground property.
Declaration
public static readonly DependencyProperty TaskNodeBackgroundProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ToolTipTemplateProperty
The DependencyProperty for ToolTipTemplate property.
Declaration
public static DependencyProperty ToolTipTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
UseAutoUpdateHierarchyProperty
The DependencyProperty for UseAutoUpdateHierarchy property.
Declaration
public static readonly DependencyProperty UseAutoUpdateHierarchyProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
UseOnDemandScheduleProperty
The DependencyProperty for UseOnDemandSchedule property.
Declaration
public static readonly DependencyProperty UseOnDemandScheduleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ValidationModeProperty
The DependencyProperty for ValidationMode property.
Declaration
public static readonly DependencyProperty ValidationModeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
WeekBeginsOnProperty
The DependencyProperty for WeekBeginsOn property.
Declaration
public static readonly DependencyProperty WeekBeginsOnProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
WeekendsProperty
The DependencyProperty of Weekends property
Declaration
public static readonly DependencyProperty WeekendsProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ZoomChangedEvent
The DependencyProperty for ZoomChanged property.
Declaration
public static readonly RoutedEvent ZoomChangedEvent
Field Value
| Type |
|---|
| System.Windows.RoutedEvent |
ZoomFactorProperty
The DependencyProperty for ZoomFactor property.
Declaration
public static readonly DependencyProperty ZoomFactorProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
ActualEndTime
Gets the actual end time value.
Declaration
public DateTime ActualEndTime { get; }
Property Value
| Type |
|---|
| System.DateTime |
ActualStartTime
Gets the actual start time value.
Declaration
public DateTime ActualStartTime { get; }
Property Value
| Type |
|---|
| System.DateTime |
AllowDragDrop
Gets or sets a value indicating whether to allow the nodes reordering in Gantt.
Declaration
public bool AllowDragDrop { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | the default value is true. |
Remarks
The AllowDragDrop is applicable for both gantt grid and chart nodes.
Examples
#C#
this.gantt.AllowDragDrop = false;
#Xaml
<ganttControl:GanttControl x:Name="gantt"
AllowDragDrop="False">
</ganttControl:GanttControl>
AllowFiltering
Declaration
public bool AllowFiltering { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
AllowSorting
Gets or sets a value indicating whether to allow sorting of records in Gantt.
Declaration
public bool AllowSorting { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The default value is false. |
Examples
#C#
this.gantt.AllowSorting = true;
#Xaml
<ganttControl:GanttControl x:Name="gantt"
AllowSorting="True">
</ganttControl:GanttControl>
AutoExpandMode
Gets or sets the value which indicates how the nodes to be expanded while loading.
Declaration
public GanttAutoExpandMode AutoExpandMode { get; set; }
Property Value
| Type | Description |
|---|---|
| GanttAutoExpandMode | The default value is AllNodesExpanded |
Examples
#C#
this.gantt.AutoExpandMode = GanttAutoExpandMode.RootNodesExpanded;
#Xaml
<ganttControl:GanttControl x:Name="gantt"
AutoExpandMode="RootNodesExpanded">
</ganttControl:GanttControl>
BaseCellMaxLength
Gets or sets the length of the base cell max.
Declaration
public double BaseCellMaxLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The length of the base cell max. |
BaseCellMinLength
Gets or sets the length of the base cell min.
Declaration
public double BaseCellMinLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The length of the base cell min. |
BaselineColor
Gets or sets the color for baseline.
Declaration
public Brush BaselineColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The baseline color. |
BaselineStrokeThickness
Gets or sets the stroke thickness for baseline.
Declaration
public double BaselineStrokeThickness { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The baseline stroke thickness. |
ChartWidth
Gets or sets the width of the chart.
Declaration
public GridLength ChartWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.GridLength | The width of the chart. |
ConnectorStroke
Gets or sets the connector stroke.
Declaration
public Brush ConnectorStroke { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
CriticalPathBrush
Gets or sets brush for critical path.
Declaration
public Brush CriticalPathBrush { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The critical path brush. |
CurrentDateLine
Gets or sets the current date line.
Declaration
public Line CurrentDateLine { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Shapes.Line | The current date line. |
CustomScheduleSource
Gets or sets the custom schedule source to draw the scheule.
Declaration
public IList<GanttScheduleRowInfo> CustomScheduleSource { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<GanttScheduleRowInfo> | The custom schedule source. |
DefaultEndTime
Gets or sets the default end time.
Declaration
public TimeSpan DefaultEndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan | The default end time. |
DefaultStartTime
Gets or sets the default start time.
Declaration
public TimeSpan DefaultStartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan | The default start time. |
EndPoint
Gets or sets the end point.
Declaration
public double EndPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The end point. |
EndTime
Gets or sets the end time.
Declaration
public DateTime EndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime | The end time. |
ExcludeHolidays
Excludes or includes the holidays in duration calculation
Declaration
public bool ExcludeHolidays { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ExcludeWeekends
Excludes or includes the weekend days in duration calculation
Declaration
public bool ExcludeWeekends { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ExportToXMLCommand
Gets the delegate commands for the export to xml command.
Declaration
public DelegateCommand<object> ExportToXMLCommand { get; }
Property Value
| Type |
|---|
| DelegateCommand<System.Object> |
FiscalYearBeginsOn
Gets or sets the fiscal year begins on.
Declaration
public Month FiscalYearBeginsOn { get; set; }
Property Value
| Type | Description |
|---|---|
| Month | The fiscal year begins on. |
GanttGrid
Gets the gantt grid.
Declaration
public GanttGrid GanttGrid { get; }
Property Value
| Type | Description |
|---|---|
| GanttGrid | The gantt grid. |
GridHeaderBackground
Gets or sets the grid header background.
Declaration
public Brush GridHeaderBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
GridHeaderForeground
Gets or sets the grid header foreground.
Declaration
public Brush GridHeaderForeground { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
GridWidth
Gets or sets the width of the grid.
Declaration
public GridLength GridWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.GridLength | The width of the grid. |
HighlightedItems
Gets or sets the highlighted items.
Declaration
public IList HighlightedItems { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.IList | The highlighted items. |
HighlightItemBrush
Gets or sets the highlight brush.
Declaration
public Brush HighlightItemBrush { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
Holidays
Gets or sets the GanttHolidayCollection.
Declaration
public GanttHolidayCollection Holidays { get; set; }
Property Value
| Type |
|---|
| GanttHolidayCollection |
ImportFromXMLCommand
Gets the delegate commands for the import from xml command.
Declaration
public DelegateCommand<object> ImportFromXMLCommand { get; }
Property Value
| Type |
|---|
| DelegateCommand<System.Object> |
IsFiscalYearNumberingEnabled
Gets or sets the fiscal year numbering. If this property is changed, it will be reflected in the gantt schedule. By default IsFiscalYearNumberingEnabled is set to false.
Declaration
public bool IsFiscalYearNumberingEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsLoadedWithInbuiltSource
Gets a value indicating whether this instance is loaded with inbuilt source.
Declaration
public bool IsLoadedWithInbuiltSource { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ItemsSource
Gets or sets the items source.
Declaration
public object ItemsSource { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | The items source. |
LayoutMode
Gets or sets the layout mode.
Declaration
public GanttLayoutMode LayoutMode { get; set; }
Property Value
| Type | Description |
|---|---|
| GanttLayoutMode | The layout mode. |
Model
Gets the model.
Declaration
public GanttModel Model { get; }
Property Value
| Type | Description |
|---|---|
| GanttModel | The model. |
NonWorkingHoursBackground
Gets or sets non working hours background
Declaration
public Brush NonWorkingHoursBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
ProgressIndicatorBackground
Gets or sets the progress Indicator Background brush.
Declaration
public Brush ProgressIndicatorBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
ProjectName
Gets or sets the Name of the current Project
Declaration
public string ProjectName { get; set; }
Property Value
| Type |
|---|
| System.String |
ResourceCollection
Gets or sets the resource collection.
Declaration
public ObservableCollection<Resource> ResourceCollection { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.ObservableCollection<Resource> | The resource collection. |
ResourceContainerTemplate
Gets or sets the resource template.
Declaration
public DataTemplate ResourceContainerTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | The resource template. |
ResourceContainerTemplateSelector
Gets or sets the resource template selector.
Declaration
public DataTemplateSelector ResourceContainerTemplateSelector { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Controls.DataTemplateSelector | The resource template selector. |
ResourceNamePlacement
Gets or sets the resource placement target.
Declaration
public PlacementMode ResourceNamePlacement { get; set; }
Property Value
| Type | Description |
|---|---|
| PlacementMode | The resource placement target. |
ResourceNameVisibility
Gets or sets the resource name visibility.
Declaration
public Visibility ResourceNameVisibility { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Visibility | The resource name visibility. |
RowHeight
Gets or sets the height of the row.
Declaration
public double RowHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The height of the row. |
ScheduleBackground
Gets or sets the schedule background.
Declaration
public Brush ScheduleBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
ScheduleBorderBrush
Gets or sets the schedule border brush.
Declaration
public Brush ScheduleBorderBrush { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
ScheduleBorderThickness
Gets or sets the schedule border thickness.
Declaration
public Thickness ScheduleBorderThickness { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Thickness | The schedule border thickness. |
ScheduleForeground
Gets or sets the schedule fore ground.
Declaration
public Brush ScheduleForeground { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
ScheduleRangePadding
Gets or sets the extended value for schedule.
Declaration
public double ScheduleRangePadding { get; set; }
Property Value
| Type |
|---|
| System.Double |
ScheduleType
Gets or sets the type of the schedule.
Declaration
public ScheduleType ScheduleType { get; set; }
Property Value
| Type | Description |
|---|---|
| ScheduleType | The type of the schedule. |
SelectedItems
Gets the selected items.
Declaration
public ObservableCollection<object> SelectedItems { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.ObservableCollection<System.Object> | The selected items. |
SelectionBrush
Gets or sets the brush color for selection.
Declaration
public Brush SelectionBrush { get; set; }
Property Value
| Type |
|---|
| System.Windows.Media.Brush |
SelectionMode
Gets or sets the selection mode for the GanttControl.
Declaration
public GanttSelectionMode SelectionMode { get; set; }
Property Value
| Type | Description |
|---|---|
| GanttSelectionMode | The selection mode:
If the SelectionMode is System.Windows.Controls.SelectionMode.Single, only one item can be selected at a time.
If the SelectionMode is System.Windows.Controls.SelectionMode.Multiple, multiple items can be selected simultaneously.
If the SelectionMode is |
Remarks
This property specifies how item selection behaves within the GanttControl. Depending on the selection mode, users can select one or multiple items, or item selection can be disabled entirely.
ShowAddNewColumn
Gets or sets a value indicating whether [show add new column].
Declaration
public bool ShowAddNewColumn { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ShowBaseline
Enable or disable the baseline.
Declaration
public bool ShowBaseline { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The show baseline. |
ShowChartLines
Gets or sets a value indicating whether [add chartlines].
Declaration
public bool ShowChartLines { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ShowCriticalPath
Gets or sets a value indicating whether the critical path need to be highlighted in GanttChart.
Declaration
public bool ShowCriticalPath { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The show critical path. |
ShowDateWithTime
Gets or sets a value indicating whether [show date with time].
Declaration
public bool ShowDateWithTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ShowGridCellToolTip
Gets or sets a value to enable the cell tooltip.
Declaration
public bool ShowGridCellToolTip { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowGridLinesOnZooming
Declaration
public bool ShowGridLinesOnZooming { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ShowHolidays
Gets or sets a value indicating whether enables or disables the ShowHolidays
Declaration
public bool ShowHolidays { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowNonWorkingHoursBackground
Gets or sets a value indicating whether [show non working Hours background].
Declaration
public bool ShowNonWorkingHoursBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ShowResizingTooltip
Gets or sets a value indicating whether [show resizing tooltip].
Declaration
public bool ShowResizingTooltip { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ShowStripLines
Gets or sets a value indicating whether [show strip lines].
Declaration
public bool ShowStripLines { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ShowWeekends
Enables or disables the ShowWeekends
Declaration
public bool ShowWeekends { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
SplitTaskAttributeMapping
Gets or sets the split task attribute mapping.
Declaration
public SplitTaskAttributeMapping SplitTaskAttributeMapping { get; set; }
Property Value
| Type | Description |
|---|---|
| SplitTaskAttributeMapping | The split task attribute mapping. |
StartPoint
Gets or sets the start point.
Declaration
public double StartPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The start point. |
StartTime
Gets or sets the start time.
Declaration
public DateTime StartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime | The start time. |
StickCurrentDateLineTo
Gets or sets the stick current date line to.
Declaration
public CurentDateLinePositions StickCurrentDateLineTo { get; set; }
Property Value
| Type | Description |
|---|---|
| CurentDateLinePositions | The stick current date line to. |
StripLines
Gets or sets the strip lines.
Declaration
public IEnumerable StripLines { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.IEnumerable | The strip lines. |
TaskAttributeMapping
Gets or sets the task attribute mapping.
Declaration
public TaskAttributeMapping TaskAttributeMapping { get; set; }
Property Value
| Type | Description |
|---|---|
| TaskAttributeMapping | The task attribute mapping. |
TaskNodeBackground
Gets or sets the task node background.
Declaration
public Brush TaskNodeBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
ToolTipTemplate
Gets or sets the tool tip template.
Declaration
public DataTemplate ToolTipTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | The tool tip template. |
UseAutoUpdateHierarchy
Gets or sets a value indicating whether [use auto update hierarchy].
Declaration
public bool UseAutoUpdateHierarchy { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
UseOnDemandSchedule
Gets or sets a value indicating whether [use on demand schedule].
Declaration
public bool UseOnDemandSchedule { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ValidationMode
Gets or Sets validation mode.
Declaration
public Mode ValidationMode { get; set; }
Property Value
| Type | Description |
|---|---|
| Mode | The validation mode. |
WeekBeginsOn
Gets or sets the week begins on.
Declaration
public DayOfWeek WeekBeginsOn { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DayOfWeek | The week begins on. |
Weekends
Gets or sets enum values which are weekends
Declaration
public Days Weekends { get; set; }
Property Value
| Type | Description |
|---|---|
| Days | The value of type Days |
ZoomFactor
Gets or sets the zoom factor.
Declaration
public double ZoomFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The zoom factor. |
Methods
Dispose()
Method to dispose the gantt control's instance.
Declaration
public void Dispose()
ExportToXML()
Exports to XML.
Declaration
public bool ExportToXML()
Returns
| Type |
|---|
| System.Boolean |
ExportToXML(String)
Exports to XML.
Declaration
public bool ExportToXML(string FilePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | FilePath | The file path. |
Returns
| Type |
|---|
| System.Boolean |
GetProjectStatistics()
Gets the Project Statistics Information
Declaration
public ProjectInfo GetProjectStatistics()
Returns
| Type | Description |
|---|---|
| ProjectInfo | ProjectInfo Object |
ImportFromXML()
Imports from XML.
Declaration
public bool ImportFromXML()
Returns
| Type |
|---|
| System.Boolean |
ImportFromXML(String)
Imports from XML.
Declaration
public bool ImportFromXML(string FilePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | FilePath | The file path. |
Returns
| Type |
|---|
| System.Boolean |
LoadDefaultTableView()
Invokes the DefaultTableView method in Grid
Declaration
public void LoadDefaultTableView()
LoadVarianceTableView()
Invokes the LoadVarianceTableView method in Grid
Declaration
public void LoadVarianceTableView()
OnApplyTemplate()
Method gets called when the default style key template is applied.
Declaration
public override void OnApplyTemplate()
OnFiscalYearPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when FiscalYearStartsIn Property Changed
Declaration
public static void OnFiscalYearPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | sender | The Sender |
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. |
OnScheduleTypeChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when [schedule type changed].
Declaration
public static void OnScheduleTypeChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | sender | The sender. |
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnWeekBeginsOnChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called When WeekBeginsOn Changed
Declaration
public static void OnWeekBeginsOnChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | sender | The Sender |
| System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgsinstance containing event data. |
ScrollGanttChartTo(DateTime)
Scrolls the Gantt Chart to the specified Date.
Declaration
public bool ScrollGanttChartTo(DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | date | The date. |
Returns
| Type |
|---|
| System.Boolean |
ScrollGanttChartTo(Double)
Scrolls the Gantt Chart to the specified point.
Declaration
public bool ScrollGanttChartTo(double point)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | point | The pixel. |
Returns
| Type |
|---|
| System.Boolean |
Events
ItemsSourceChanged
Occurs when [items source changed].
Declaration
public event DependencyPropertyChangedEventHandler ItemsSourceChanged
Event Type
| Type |
|---|
| System.Windows.DependencyPropertyChangedEventHandler |
NodeCreated
Occurs when [node created].
Declaration
public event NodeCreatedEventHandler NodeCreated
Event Type
| Type |
|---|
| NodeCreatedEventHandler |
NodeDragCompleted
Occurs when [node drag completed].
Declaration
public event NodeDragAndDropEventHandler NodeDragCompleted
Event Type
| Type |
|---|
| NodeDragAndDropEventHandler |
NodeDragDelta
Occurs when [node drag delta].
Declaration
public event NodeDragAndDropEventHandler NodeDragDelta
Event Type
| Type |
|---|
| NodeDragAndDropEventHandler |
NodeResizingCompleted
Occurs when [node resizing completed].
Declaration
public event NodeResizingEventHandeler NodeResizingCompleted
Event Type
| Type |
|---|
| NodeResizingEventHandeler |
NodeResizingDelta
Occurs when [node resizing delta].
Declaration
public event NodeResizingEventHandeler NodeResizingDelta
Event Type
| Type |
|---|
| NodeResizingEventHandeler |
ProgressResizing
Occurs when resizing the progress.
Declaration
public event EventHandler<ProgressResizingEventArgs> ProgressResizing
Event Type
| Type |
|---|
| System.EventHandler<ProgressResizingEventArgs> |
ProgressResizingCompleted
Occurs when progress resizing is completed.
Declaration
public event EventHandler<ProgressResizingCompletedEventArgs> ProgressResizingCompleted
Event Type
| Type |
|---|
| System.EventHandler<ProgressResizingCompletedEventArgs> |
RelationshipEstablished
Occurs when relationship is established.
Declaration
public event EventHandler<GanttRelationshipEstablishedEventArgs> RelationshipEstablished
Event Type
| Type |
|---|
| System.EventHandler<GanttRelationshipEstablishedEventArgs> |
ResourceContainerCreated
Occurs when [resource container created].
Declaration
public event ResourceContainerCreatedEventHandler ResourceContainerCreated
Event Type
| Type |
|---|
| ResourceContainerCreatedEventHandler |
ScheduleCellCreated
Occurs when [schedule cell created].
Declaration
public event ScheduleCellCreatedEventHandler ScheduleCellCreated
Event Type
| Type |
|---|
| ScheduleCellCreatedEventHandler |
SelectionChanged
Occurs when the selection is changed in the Gantt.
Declaration
public event EventHandler<SelectionChangedEventArgs> SelectionChanged
Event Type
| Type |
|---|
| System.EventHandler<SelectionChangedEventArgs> |
Remarks
The SelectionChanged event will be raised when either the Gantt grid or chart items selection has changed.
SelectionChanging
Occurs when the selection is being changed in the Gantt.
Declaration
public event EventHandler<SelectionChangingEventArgs> SelectionChanging
Event Type
| Type |
|---|
| System.EventHandler<SelectionChangingEventArgs> |
Remarks
The SelectionChanging event will be raised when either the Gantt grid or chart items selection is changing.
StripLineCreated
Occurs when [strip line created].
Declaration
public event StriplineCreatedEventHandler StripLineCreated
Event Type
| Type |
|---|
| StriplineCreatedEventHandler |
TemplateApplied
Occurs when [template applied].
Declaration
public event TemplateAppliedEventHandler TemplateApplied
Event Type
| Type |
|---|
| TemplateAppliedEventHandler |
TreeGridNodeDragging
Occurs when the user is dragging an item in Gantt.
Declaration
public event EventHandler<TreeGridNodeDraggingEventArgs> TreeGridNodeDragging
Event Type
| Type |
|---|
| System.EventHandler<TreeGridNodeDraggingEventArgs> |
TreeGridNodeDragStarting
Occurs when you start to drag the item in Gantt.
Declaration
public event EventHandler<TreeGridNodeDragStartingEventArgs> TreeGridNodeDragStarting
Event Type
| Type |
|---|
| System.EventHandler<TreeGridNodeDragStartingEventArgs> |
TreeGridNodeDrop
Occurs when the user drops an item.
Declaration
public event EventHandler<TreeGridNodeDropEventArgs> TreeGridNodeDrop
Event Type
| Type |
|---|
| System.EventHandler<TreeGridNodeDropEventArgs> |
ZoomChanged
Occurs when [zoom changed].
Declaration
public event ZoomChangedEventHandler ZoomChanged
Event Type
| Type |
|---|
| ZoomChangedEventHandler |