Class GanttChart
Represents a control that can display the progress of project in graphical notation.
Inheritance
Namespace: Syncfusion.UI.Xaml.Gantt
Assembly: Syncfusion.SfGantt.UWP.dll
Syntax
public class GanttChart : Control
Constructors
GanttChart()
Initializes a new instance of the GanttChart class.
Declaration
public GanttChart()
Fields
AllowEditingProperty
Property to enable editing.
Declaration
public static readonly DependencyProperty AllowEditingProperty
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 |
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
EnableSelection 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 |
HolidaysProperty
Dependency registration of Holidays
Declaration
public static readonly DependencyProperty HolidaysProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
NonWorkingDaysBackgroundProperty
NonWorkingDays Background 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 |
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
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
Property for selection background.
Declaration
public static readonly DependencyProperty SelectionBackgroundProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
SelectionForegroundProperty
Property for selection text color.
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 |
ShowToolTipOnEditingPredecessorProperty
Property for displaying tooltip when drag and drop the link.
Declaration
public static readonly DependencyProperty ShowToolTipOnEditingPredecessorProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ShowToolTipOnEditingProgressProperty
Property for displaying tooltip when dragging progress bar.
Declaration
public static readonly DependencyProperty ShowToolTipOnEditingProgressProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ShowToolTipOnEditingProperty
Property for displaying tooltip while editing in chart view.
Declaration
public static readonly DependencyProperty ShowToolTipOnEditingProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ShowToolTipProperty
Property to enable tool tip.
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 |
StriplineToolTipStyleProperty
Identifies the StriplineToolTipStyle dependency property.
Declaration
public static readonly DependencyProperty StriplineToolTipStyleProperty
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 |
TimescaleEndDateProperty
The timescale end date property
Declaration
public static readonly DependencyProperty TimescaleEndDateProperty
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 |
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 |
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 |
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 |
Holidays
Gets or sets the GanttHolidayCollection.
Declaration
public GanttHolidayCollection Holidays { get; set; }
Property Value
Type |
---|
GanttHolidayCollection |
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 |
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 or sets the selected data item which bound in the Gantt.
Declaration
public object SelectedTask { get; set; }
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 |
ShowToolTip
Gets or sets a value indicating whether the tool tip to be shown.
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 |
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 |
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 |
TimescaleEndDate
Gets or sets the end date of the timescale.
Declaration
public object TimescaleEndDate { get; set; }
Property Value
Type |
---|
System.Object |
TimescaleStartDate
Gets or sets the start date of the timescale.
Declaration
public object TimescaleStartDate { get; set; }
Property Value
Type |
---|
System.Object |
WeekBeginsOn
Gets or sets the day, on which the week get begins.
Declaration
public DayOfWeek WeekBeginsOn { get; set; }
Property Value
Type |
---|
System.DayOfWeek |
Methods
MeasureOverride(Size)
Measures the children size.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | availableSize | Available size. |
Returns
Type | Description |
---|---|
Windows.Foundation.Size | Size value |
OnApplyTemplate()
Called when template is applied.
Declaration
protected override void OnApplyTemplate()
OnPointerExited(PointerRoutedEventArgs)
Called when pointer is exited from Gantt chart.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer routed event arguments. |
OnPointerMoved(PointerRoutedEventArgs)
Called when pointer is moved in Gantt chart.
Declaration
protected override void OnPointerMoved(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer routed event arguments. |