Class SfGantt
Represents the Gantt control to visualize and edit the project schedule.
Inheritance
Namespace: Syncfusion.UI.Xaml.Gantt
Assembly: Syncfusion.SfGantt.UWP.dll
Syntax
public class SfGantt : Control
Constructors
SfGantt()
Initializes a new instance of the SfGantt class.
Declaration
public SfGantt()
Fields
AllowEditingProperty
Allow editing property.
Declaration
public static readonly DependencyProperty AllowEditingProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
AllowResizingColumnsProperty
AllowResizingColumns Property.
Declaration
public static readonly DependencyProperty AllowResizingColumnsProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
AllowSortingProperty
Allow sorting property.
Declaration
public static readonly DependencyProperty AllowSortingProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
AutoScrollOffsetProperty
The auto scroll offset backing property.
Declaration
public static readonly DependencyProperty AutoScrollOffsetProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
BringTaskOnVerticalScrollProperty
Identifies the BringTaskOnVerticalScroll dependency property.
Declaration
public static readonly DependencyProperty BringTaskOnVerticalScrollProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ChartWidthProperty
The chart width property.
Declaration
public static readonly DependencyProperty ChartWidthProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
CriticalProgressBarBrushProperty
Property for CriticalProgressBarBrush.
Declaration
public static readonly DependencyProperty CriticalProgressBarBrushProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
CriticalTaskBarBrushProperty
Property for CriticalTaskBarBrush.
Declaration
public static readonly DependencyProperty CriticalTaskBarBrushProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
DisplayResourceNamesProperty
DisplayResourceNames Property.
Declaration
public static readonly DependencyProperty DisplayResourceNamesProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
DisplayTaskNamesProperty
DisplayTaskNames Property.
Declaration
public static readonly DependencyProperty DisplayTaskNamesProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
EnableSelectionProperty
Enable selection property.
Declaration
public static readonly DependencyProperty EnableSelectionProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ExcludeNonWorkingDaysProperty
Identifies the ExcludeNonWorkingDays dependency property.
Declaration
public static readonly DependencyProperty ExcludeNonWorkingDaysProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
GridHeaderStyleProperty
The property for grid header style.
Declaration
public static readonly DependencyProperty GridHeaderStyleProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
GridWidthProperty
The grid width property.
Declaration
public static readonly DependencyProperty GridWidthProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
HighlightCriticalTasksProperty
Property for HighlightCriticalTasks.
Declaration
public static readonly DependencyProperty HighlightCriticalTasksProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
HolidaysProperty
Identifies the Holidays dependency property.
Declaration
public static readonly DependencyProperty HolidaysProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ItemsSourceProperty
The ItemsSource property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
MilestoneBrushProperty
MilestoneBrush Property.
Declaration
public static readonly DependencyProperty MilestoneBrushProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
MilestoneTemplateProperty
Identifies the MilestoneTemplate dependency property.
Declaration
public static readonly DependencyProperty MilestoneTemplateProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
NonWorkingDaysBackgroundProperty
NonWorkingDaysBackground Property.
Declaration
public static readonly DependencyProperty NonWorkingDaysBackgroundProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
NonWorkingDaysProperty
NonWorkingDays Property.
Declaration
public static readonly DependencyProperty NonWorkingDaysProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ParentProgressIndicatorBrushProperty
ParentProgressIndicatorBrush Property.
Declaration
public static readonly DependencyProperty ParentProgressIndicatorBrushProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ParentTaskBarBrushProperty
ParentTaskBarBrush Property.
Declaration
public static readonly DependencyProperty ParentTaskBarBrushProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ParentTaskBarTemplateProperty
Identifies the ParentTaskBarTemplate dependency property.
Declaration
public static readonly DependencyProperty ParentTaskBarTemplateProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
PredecessorConnectorStyleProperty
The predecessor connector style property.
Declaration
public static readonly DependencyProperty PredecessorConnectorStyleProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
PredecessorPreviewLineStyleProperty
The predecessor preview line style property.
Declaration
public static readonly DependencyProperty PredecessorPreviewLineStyleProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ProjectResourcesProperty
The resource collection property.
Declaration
public static readonly DependencyProperty ProjectResourcesProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ResourceNameTemplateProperty
The resource name template property.
Declaration
public static readonly DependencyProperty ResourceNameTemplateProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
SelectedIndexProperty
SelectedIndex Property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
SelectionBackgroundProperty
SelectionBackground Property.
Declaration
public static readonly DependencyProperty SelectionBackgroundProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
SelectionForegroundProperty
SelectionForeground Property.
Declaration
public static readonly DependencyProperty SelectionForegroundProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ShowNonWorkingDaysProperty
ShowNonWorkingDays Property.
Declaration
public static readonly DependencyProperty ShowNonWorkingDaysProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ShowStriplineToolTipProperty
Identifies the ShowStriplineToolTip dependency property.
Declaration
public static readonly DependencyProperty ShowStriplineToolTipProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ShowToolbarProperty
Identifies the ShowToolbar property.
Declaration
public static readonly DependencyProperty ShowToolbarProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ShowToolTipOnEditingPredecessorProperty
ShowToolTipOnEditingPredecessor Property.
Declaration
public static readonly DependencyProperty ShowToolTipOnEditingPredecessorProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ShowToolTipOnEditingProgressProperty
ShowToolTipOnEditingProgress Property.
Declaration
public static readonly DependencyProperty ShowToolTipOnEditingProgressProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ShowToolTipOnEditingProperty
ShowToolTipOnEditing Property.
Declaration
public static readonly DependencyProperty ShowToolTipOnEditingProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ShowToolTipProperty
Allow tooltip property.
Declaration
public static readonly DependencyProperty ShowToolTipProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
StriplineLabelTemplateProperty
Identifies the StriplineLabelTemplate dependency property.
Declaration
public static readonly DependencyProperty StriplineLabelTemplateProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
StriplinesProperty
Identifies the Striplines dependency property.
Declaration
public static readonly DependencyProperty StriplinesProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
StriplineToolTipStyleProperty
Identifies the StriplineToolTipStyle dependency property.
Declaration
public static readonly DependencyProperty StriplineToolTipStyleProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
TaskBarBrushProperty
TaskBarBrush Property.
Declaration
public static readonly DependencyProperty TaskBarBrushProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
TaskBarTemplateProperty
Identifies the TaskBarTemplate dependency property.
Declaration
public static readonly DependencyProperty TaskBarTemplateProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
TaskHighlightBrushProperty
TaskHighlightBrush Property.
Declaration
public static readonly DependencyProperty TaskHighlightBrushProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
TaskNameTemplateProperty
The task name template property.
Declaration
public static readonly DependencyProperty TaskNameTemplateProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
TaskProgressIndicatorBrushProperty
TaskProgressIndicatorBrush Property.
Declaration
public static readonly DependencyProperty TaskProgressIndicatorBrushProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
TimescaleEndDateProperty
The timescale end date property.
Declaration
public static readonly DependencyProperty TimescaleEndDateProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
TimescaleSettingsProperty
The timescale settings property.
Declaration
public static readonly DependencyProperty TimescaleSettingsProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
TimescaleStartDateProperty
The timescale start date property.
Declaration
public static readonly DependencyProperty TimescaleStartDateProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ToolbarBackgroundProperty
Identifies the ToolbarBackground property.
Declaration
public static readonly DependencyProperty ToolbarBackgroundProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ToolbarIconBrushProperty
Identifies the ToolbarIconBrush property.
Declaration
public static readonly DependencyProperty ToolbarIconBrushProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
ValidationModeProperty
Property for ValidationMode.
Declaration
public static readonly DependencyProperty ValidationModeProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
VisibleGridColumnsProperty
The visible grid columns property.
Declaration
public static readonly DependencyProperty VisibleGridColumnsProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
VisibleToolbarItemsProperty
Identifies the VisibleToolbarItems property.
Declaration
public static readonly DependencyProperty VisibleToolbarItemsProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
WeekBeginsOnProperty
The week begins on property.
Declaration
public static readonly DependencyProperty WeekBeginsOnProperty
Field Value
| Type |
|---|
| Windows.UI.Xaml.DependencyProperty |
Properties
AllowEditing
Gets or sets a value indicating whether the user can edit the task.
Declaration
public bool AllowEditing { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
AllowResizingColumns
Gets or sets a value indicating whether the user can adjust the column width by using the mouse.
Declaration
public bool AllowResizingColumns { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
AllowSorting
Gets or sets a value indicating whether the user can sort the data by clicking on its header cell of the column in Gantt grid.
Declaration
public bool AllowSorting { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
AutoScrollOffset
Gets or sets the value that indicates how much pixels get scrolled while auto scrolling.
Declaration
public double AutoScrollOffset { get; set; }
Property Value
| Type |
|---|
| System.Double |
BringTaskOnVerticalScroll
Gets or sets a value indicating whether the chart can auto scroll to the visible tasks while vertical scrolling done. BringTaskOnVerticalScroll
Declaration
public bool BringTaskOnVerticalScroll { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ChartWidth
Gets or sets a value to control the width of the Gantt chart.
Declaration
public GridLength ChartWidth { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.GridLength |
CriticalProgressBarBrush
Gets or sets the critical progress brush.
Declaration
public Brush CriticalProgressBarBrush { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
CriticalTaskBarBrush
Gets or sets the critical task brush.
Declaration
public Brush CriticalTaskBarBrush { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
DisplayResourceNames
Gets or sets a value indicating whether the resource names need to display in the Gantt chart.
Declaration
public bool DisplayResourceNames { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
DisplayTaskNames
Gets or sets a value indicating whether the task name need to display in the Gantt chart.
Declaration
public bool DisplayTaskNames { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
EnableSelection
Gets or sets a value indicating whether to activate selection in the Gantt grid and chart.
Declaration
public bool EnableSelection { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ExcludeNonWorkingDays
Gets or sets a value indicating whether to exclude the non-working days in the task's duration.
Declaration
public bool ExcludeNonWorkingDays { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
GridHeaderStyle
Gets or sets the Windows.UI.Xaml.Style applied to the header row in GanttGrid.
Declaration
public Style GridHeaderStyle { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Style |
GridWidth
Gets or sets a value to control the width of the Gantt grid.
Declaration
public GridLength GridWidth { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.GridLength |
HighlightCriticalTasks
Gets or sets a value indicating whether to highlight the critical tasks.
Declaration
public bool HighlightCriticalTasks { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Holidays
Gets or sets the GanttHolidayCollection.
Declaration
public GanttHolidayCollection Holidays { get; set; }
Property Value
| Type |
|---|
| GanttHolidayCollection |
Item[String]
Gets the localized string.
Declaration
public object this[string key] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | String to be localized |
Property Value
| Type | Description |
|---|---|
| System.Object | Returns the localized string |
ItemsSource
Gets or sets the source for the Gantt control.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
| Type |
|---|
| System.Collections.IEnumerable |
MilestoneBrush
Gets or sets a brush that describes milestone color.
Declaration
public Brush MilestoneBrush { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
MilestoneTemplate
Gets or sets the MilestoneTemplate.
Declaration
public ControlTemplate MilestoneTemplate { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Controls.ControlTemplate |
NonWorkingDays
Gets or sets the Days type value to be considered as non working days.
Declaration
public Days NonWorkingDays { get; set; }
Property Value
| Type |
|---|
| Days |
NonWorkingDaysBackground
Gets or sets a brush value to highlight non working days in Gantt chart.
Declaration
public Brush NonWorkingDaysBackground { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
ParentProgressIndicatorBrush
Gets or sets a brush that describes parent task's progress indicator color.
Declaration
public Brush ParentProgressIndicatorBrush { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
ParentTaskBarBrush
Gets or sets a brush that describes parent task bar color.
Declaration
public Brush ParentTaskBarBrush { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
ParentTaskBarTemplate
Gets or sets the ParentTaskBarTemplate.
Declaration
public ControlTemplate ParentTaskBarTemplate { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Controls.ControlTemplate |
PredecessorConnectorStyle
Gets or sets the Windows.UI.Xaml.Style to customize the predecessor connector appearance.
Declaration
public Style PredecessorConnectorStyle { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Style |
PredecessorPreviewLineStyle
Gets or sets the Windows.UI.Xaml.Style to customize the predecessor preview line appearance.
Declaration
public Style PredecessorPreviewLineStyle { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Style |
ProjectResources
Gets or sets the resources involved in the project.
Declaration
public GanttResourceCollection ProjectResources { get; set; }
Property Value
| Type |
|---|
| GanttResourceCollection |
ResourceNameTemplate
Gets or sets the Windows.UI.Xaml.DataTemplate used to customize the content of the resources names.
Declaration
public DataTemplate ResourceNameTemplate { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.DataTemplate |
SelectedIndex
Gets or sets a value indicates the index of the selected task.
Declaration
public int SelectedIndex { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
SelectedTask
Gets the selected data item which bound in the Gantt.
Declaration
public object SelectedTask { get; }
Property Value
| Type |
|---|
| System.Object |
SelectionBackground
Gets or sets a brush that describes the background color of the selected task.
Declaration
public Brush SelectionBackground { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
SelectionForeground
Gets or sets a brush that describes the foreground color of the selected task.
Declaration
public Brush SelectionForeground { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
ShowNonWorkingDays
Gets or sets a value indicating whether to highlight the non working days in Gantt chart.
Declaration
public bool ShowNonWorkingDays { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowStriplineToolTip
Gets or sets a value indicating whether to show the tooltip while mouse hovers on the GanttStripline.
Declaration
public bool ShowStriplineToolTip { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Remarks
GanttStripline tool tip will be viewed only in the desktop view.
ShowToolbar
Gets or sets a value indicating whether to show the toolbar in the SfGantt.
Declaration
public bool ShowToolbar { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowToolTip
Gets or sets a value indicating whether to show tooltip for the task in the Gantt chart.
Declaration
public bool ShowToolTip { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowToolTipOnEditing
Gets or sets a value indicating whether the user can view the tooltip while editing the task in Gantt chart.
Declaration
public bool ShowToolTipOnEditing { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowToolTipOnEditingPredecessor
Gets or sets a value indicating whether the user can view the tooltip while establishing relationship in Gantt chart.
Declaration
public bool ShowToolTipOnEditingPredecessor { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowToolTipOnEditingProgress
Gets or sets a value indicating whether the user can view the tooltip while editing the task's progress in Gantt chart.
Declaration
public bool ShowToolTipOnEditingProgress { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
StriplineLabelTemplate
Gets or sets the GanttStripline label template.
Declaration
public DataTemplate StriplineLabelTemplate { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.DataTemplate |
Striplines
Gets or sets the GanttStriplineCollection.
Declaration
public GanttStriplineCollection Striplines { get; set; }
Property Value
| Type |
|---|
| GanttStriplineCollection |
StriplineToolTipStyle
Gets or sets the Windows.UI.Xaml.Style applied to the GanttStripline tooltip.
Declaration
public Style StriplineToolTipStyle { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Style |
TaskBarBrush
Gets or sets a brush that describes task bar color.
Declaration
public Brush TaskBarBrush { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
TaskBarTemplate
Gets or sets the TaskBarTemplate.
Declaration
public ControlTemplate TaskBarTemplate { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Controls.ControlTemplate |
TaskHighlightBrush
Gets or sets a brush that describes the highlight color of the task.
Declaration
public Brush TaskHighlightBrush { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
TaskNameTemplate
Gets or sets the Windows.UI.Xaml.DataTemplate used to customize the content of the task name.
Declaration
public DataTemplate TaskNameTemplate { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.DataTemplate |
TaskProgressIndicatorBrush
Gets or sets a brush that describes task's progress indicator color.
Declaration
public Brush TaskProgressIndicatorBrush { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
TimescaleEndDate
Gets or sets the end date of the timescale.
Declaration
public object TimescaleEndDate { get; set; }
Property Value
| Type |
|---|
| System.Object |
TimescaleSettings
Gets or sets the timescale settings that holds all Timescale properties.
Declaration
public TimescaleSettings TimescaleSettings { get; set; }
Property Value
| Type |
|---|
| TimescaleSettings |
TimescaleStartDate
Gets or sets the start date of the timescale.
Declaration
public object TimescaleStartDate { get; set; }
Property Value
| Type |
|---|
| System.Object |
ToolbarBackground
Gets or sets the background brush for the toolbar.
Declaration
public Brush ToolbarBackground { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
ToolbarIconBrush
Gets or sets the brush for the toolbar icon.
Declaration
public Brush ToolbarIconBrush { get; set; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.Media.Brush |
ValidationMode
Gets or sets ValidationMode
Declaration
public ValidationMode ValidationMode { get; set; }
Property Value
| Type |
|---|
| ValidationMode |
VisibleGridColumns
Gets or sets the TaskAttributes that describes which columns need to be displayed in the Gantt grid.
Declaration
public TaskAttributes VisibleGridColumns { get; set; }
Property Value
| Type |
|---|
| TaskAttributes |
VisibleToolbarItems
Gets or sets the visible items of the toolbar.
Declaration
public GanttToolbarItems VisibleToolbarItems { get; set; }
Property Value
| Type |
|---|
| GanttToolbarItems |
WeekBeginsOn
Gets or sets the day, on which the week get begins.
Declaration
public DayOfWeek WeekBeginsOn { get; set; }
Property Value
| Type |
|---|
| System.DayOfWeek |
Methods
CollapseAllTasks()
Collapse all  the expanded tasks.
Declaration
public void CollapseAllTasks()
CollapseTask(Int32)
Collapse the task at the specified row index.
Declaration
public void CollapseTask(int rowIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Represents the index of the row. |
CollapseTask(Object)
Collapse the particular task.
Declaration
public void CollapseTask(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | Task item with children in the items source collection. |
Dispose()
To dispose the Gantt's instances.
Declaration
public void Dispose()
ExpandAllTasks()
Expands all the collapsed tasks.
Declaration
public void ExpandAllTasks()
ExpandTask(Int32)
Expand the task at the specified row index.
Declaration
public void ExpandTask(int rowIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Represents the index of the row. |
ExpandTask(Object)
Expand the particular task.
Declaration
public void ExpandTask(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | Task item with children in the items source collection. |
GetLevel(Object)
Gets the hierarchical level of the task.
Declaration
public int GetLevel(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | Task item. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Returns the level of the task. |
MeasureOverride(Size)
Called when children elements are measured.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Windows.Foundation.Size | availableSize | Available Size |
Returns
| Type | Description |
|---|---|
| Windows.Foundation.Size | Total measured size of children. |
OnApplyTemplate()
Called when template is applied to the Gantt control.
Declaration
protected override void OnApplyTemplate()
OnTaskBarDragCompleted(TaskBarDragCompletedEventArgs)
Called when taskbar drag is completed.
Declaration
protected virtual void OnTaskBarDragCompleted(TaskBarDragCompletedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| TaskBarDragCompletedEventArgs | args | Taskbar drag completed event arguments. |
OnTaskBarDragDelta(TaskBarDragDeltaEventArgs)
Called when taskbar is dragging.
Declaration
protected virtual void OnTaskBarDragDelta(TaskBarDragDeltaEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| TaskBarDragDeltaEventArgs | args | taskbar drag delta event arguments. |
OnTaskBarDragStart(TaskBarDragStartEventArgs)
Called when taskbar drag is started.
Declaration
protected virtual void OnTaskBarDragStart(TaskBarDragStartEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| TaskBarDragStartEventArgs | args | Taskbar drag start event arguments. |
OnTaskBarProgressChanged(TaskBarProgressChangedEventArgs)
To raise the taskbar progress changed event.
Declaration
protected virtual void OnTaskBarProgressChanged(TaskBarProgressChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| TaskBarProgressChangedEventArgs | args | The taskbar progress changed event arguments |
OnTaskBarProgressChanging(TaskBarProgressChangingEventArgs)
To raise the taskbar progress changing event.
Declaration
protected virtual void OnTaskBarProgressChanging(TaskBarProgressChangingEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| TaskBarProgressChangingEventArgs | args | The taskbar progress changing event arguments |
OnTaskBarResizeCompleted(TaskBarResizeCompletedEventArgs)
Called when taskbar resize is completed.
Declaration
protected virtual void OnTaskBarResizeCompleted(TaskBarResizeCompletedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| TaskBarResizeCompletedEventArgs | args | Taskbar resize completed event arguments. |
OnTaskBarResizeDelta(TaskBarResizeDeltaEventArgs)
Called when taskbar is resizing.
Declaration
protected virtual void OnTaskBarResizeDelta(TaskBarResizeDeltaEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| TaskBarResizeDeltaEventArgs | args | Task bar resize delta event arguments. |
OnTaskBarResizeStart(TaskBarResizeStartEventArgs)
Called when taskbar resizing is started.
Declaration
protected virtual void OnTaskBarResizeStart(TaskBarResizeStartEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| TaskBarResizeStartEventArgs | args | Taskbar resize start event arguments. |
Refresh()
To refresh the Gantt control
Declaration
public void Refresh()
ScrollGanttTo(Nullable<DateTime>, Nullable<Int32>)
To scroll the Gantt chart horizontally to the specified date and vertically to the specified task's index.
Declaration
public bool ScrollGanttTo(Nullable<DateTime> date, Nullable<int> index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.DateTime> | date | DateTime value to scroll horizontally. |
| System.Nullable<System.Int32> | index | Task's index value to scroll vertically. |
Returns
| Type | Description |
|---|---|
| System.Boolean | Boolean value, chart scrolls or not. |
ShowAddDialog()
Shows the add dialog box in the SfGantt.
Declaration
public void ShowAddDialog()
ShowEditDialog(Object)
Shows the edit dialog box in the SfGantt.
Declaration
public Task<bool> ShowEditDialog(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | Task item. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Boolean> | Returns whether the item is present in the record collection. |
Events
BeginCellEdit
Occurs when cell edit begins.
Declaration
public event EventHandler<BeginCellEditEventArgs> BeginCellEdit
Event Type
| Type |
|---|
| System.EventHandler<BeginCellEditEventArgs> |
EndCellEdit
Occurs when cell edit is completed.
Declaration
public event EventHandler<EndCellEditEventArgs> EndCellEdit
Event Type
| Type |
|---|
| System.EventHandler<EndCellEditEventArgs> |
SelectionChanged
Occurs when the task's selection has changed.
Declaration
public event EventHandler<SelectionChangedEventArgs> SelectionChanged
Event Type
| Type |
|---|
| System.EventHandler<SelectionChangedEventArgs> |
SelectionChanging
Occurs when the task's selection is changing.
Declaration
public event EventHandler<SelectionChangingEventArgs> SelectionChanging
Event Type
| Type |
|---|
| System.EventHandler<SelectionChangingEventArgs> |
TaskAdded
Occurs when a task is added.
Declaration
public event EventHandler<TaskUpdatedEventArgs> TaskAdded
Event Type
| Type |
|---|
| System.EventHandler<TaskUpdatedEventArgs> |
TaskAdding
Occurs when the add button is pressed in the toolbar.
Declaration
public event EventHandler<TaskUpdatingEventArgs> TaskAdding
Event Type
| Type |
|---|
| System.EventHandler<TaskUpdatingEventArgs> |
TaskBarDragCompleted
Occurs when dragging is completed.
Declaration
public event EventHandler<TaskBarDragCompletedEventArgs> TaskBarDragCompleted
Event Type
| Type |
|---|
| System.EventHandler<TaskBarDragCompletedEventArgs> |
TaskBarDragDelta
Occurs when dragging is performed.
Declaration
public event EventHandler<TaskBarDragDeltaEventArgs> TaskBarDragDelta
Event Type
| Type |
|---|
| System.EventHandler<TaskBarDragDeltaEventArgs> |
TaskBarDragStart
Occurs when dragging starts.
Declaration
public event EventHandler<TaskBarDragStartEventArgs> TaskBarDragStart
Event Type
| Type |
|---|
| System.EventHandler<TaskBarDragStartEventArgs> |
TaskBarProgressChanged
Occurs when progress value has changed.
Declaration
public event EventHandler<TaskBarProgressChangedEventArgs> TaskBarProgressChanged
Event Type
| Type |
|---|
| System.EventHandler<TaskBarProgressChangedEventArgs> |
TaskBarProgressChanging
Occurs when progress value changing.
Declaration
public event EventHandler<TaskBarProgressChangingEventArgs> TaskBarProgressChanging
Event Type
| Type |
|---|
| System.EventHandler<TaskBarProgressChangingEventArgs> |
TaskBarResizeCompleted
Occurs when resizing is completed.
Declaration
public event EventHandler<TaskBarResizeCompletedEventArgs> TaskBarResizeCompleted
Event Type
| Type |
|---|
| System.EventHandler<TaskBarResizeCompletedEventArgs> |
TaskBarResizeDelta
Occurs when resizing is performed.
Declaration
public event EventHandler<TaskBarResizeDeltaEventArgs> TaskBarResizeDelta
Event Type
| Type |
|---|
| System.EventHandler<TaskBarResizeDeltaEventArgs> |
TaskBarResizeStart
Occurs when resizing starts.
Declaration
public event EventHandler<TaskBarResizeStartEventArgs> TaskBarResizeStart
Event Type
| Type |
|---|
| System.EventHandler<TaskBarResizeStartEventArgs> |
TaskCollapsed
Occurs when the task is collapsed.
Declaration
public event EventHandler<TaskCollapsedEventArgs> TaskCollapsed
Event Type
| Type |
|---|
| System.EventHandler<TaskCollapsedEventArgs> |
TaskCollapsing
Occurs when the task is going to collapse.
Declaration
public event EventHandler<TaskCollapsingEventArgs> TaskCollapsing
Event Type
| Type |
|---|
| System.EventHandler<TaskCollapsingEventArgs> |
TaskDeleted
Occurs when deleting is completed.
Declaration
public event EventHandler<TaskUpdatedEventArgs> TaskDeleted
Event Type
| Type |
|---|
| System.EventHandler<TaskUpdatedEventArgs> |
TaskDeleting
Occurs when deleting takes place.
Declaration
public event EventHandler<TaskUpdatingEventArgs> TaskDeleting
Event Type
| Type |
|---|
| System.EventHandler<TaskUpdatingEventArgs> |
TaskEdited
Occurs when a task is edited.
Declaration
public event EventHandler<TaskUpdatedEventArgs> TaskEdited
Event Type
| Type |
|---|
| System.EventHandler<TaskUpdatedEventArgs> |
TaskEditing
Occurs when the edit button is pressed in the toolbar.
Declaration
public event EventHandler<TaskUpdatingEventArgs> TaskEditing
Event Type
| Type |
|---|
| System.EventHandler<TaskUpdatingEventArgs> |
TaskExpanded
Occurs when the task is expanded.
Declaration
public event EventHandler<TaskExpandedEventArgs> TaskExpanded
Event Type
| Type |
|---|
| System.EventHandler<TaskExpandedEventArgs> |
TaskExpanding
Occurs when the task is going to expand.
Declaration
public event EventHandler<TaskExpandingEventArgs> TaskExpanding
Event Type
| Type |
|---|
| System.EventHandler<TaskExpandingEventArgs> |
TaskGenerated
Occurs when task is generated in the view.
Declaration
public event EventHandler<TaskEventArgs> TaskGenerated
Event Type
| Type |
|---|
| System.EventHandler<TaskEventArgs> |
TaskIndented
Occurs when indented a task.
Declaration
public event EventHandler<TaskIndentedEventArgs> TaskIndented
Event Type
| Type |
|---|
| System.EventHandler<TaskIndentedEventArgs> |
TaskIndenting
Occurs when the indent button is pressed in the toolbar.
Declaration
public event EventHandler<TaskIndentingEventArgs> TaskIndenting
Event Type
| Type |
|---|
| System.EventHandler<TaskIndentingEventArgs> |
TaskOutdented
Occurs when out dented a task.
Declaration
public event EventHandler<TaskOutdentedEventArgs> TaskOutdented
Event Type
| Type |
|---|
| System.EventHandler<TaskOutdentedEventArgs> |
TaskOutdenting
Occurs when the out dent button is pressed in the toolbar.
Declaration
public event EventHandler<TaskOutdentingEventArgs> TaskOutdenting
Event Type
| Type |
|---|
| System.EventHandler<TaskOutdentingEventArgs> |
TaskRelationshipEstablished
Occurs when relation is established between task through drag and drop.
Declaration
public event EventHandler<TaskRelationshipEventArgs> TaskRelationshipEstablished
Event Type
| Type |
|---|
| System.EventHandler<TaskRelationshipEventArgs> |