Class GanttChart
Represents a control that can display the progress of project in graphical notation.
Inheritance
Namespace: Syncfusion.Windows.Controls.Gantt
Assembly: Syncfusion.Gantt.Wpf.dll
Syntax
public class GanttChart : ItemsControl
Constructors
GanttChart()
Initializes a new instance of the GanttChart class.
Declaration
public GanttChart()
Fields
ConnectorStrokeProperty
The DependencyProperty for ConnectorStroke property.
Declaration
public static readonly DependencyProperty ConnectorStrokeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentDateLineProperty
Dependency registration for CurrentDateLine. The DependencyProperty for CurrentDateLine property.
Declaration
public static readonly DependencyProperty CurrentDateLineProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EndPointProperty
The DependencyProperty for EndPoint property.
Declaration
public static readonly DependencyProperty EndPointProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EndTimeProperty
The DependencyProperty for EndTime property.
Declaration
public static readonly DependencyProperty EndTimeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HighlightItemBrushProperty
The DependencyProperty for HighlightItemBrush property.
Declaration
public static readonly DependencyProperty HighlightItemBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NonWorkingHoursBackgroundProperty
The DependencyProperty for NonWorkingHoursBackground property.
Declaration
public static readonly DependencyProperty NonWorkingHoursBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ProgressIndicatorBackgroundProperty
The DependencyProperty for ProgressIndicatorBackground property.
Declaration
public static readonly DependencyProperty ProgressIndicatorBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ResourceNameForegroundProperty
The DependencyProperty for ResourceNameForeground property.
Declaration
public static readonly DependencyProperty ResourceNameForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ResourceNamePlacementProperty
Dependency Registration for Resource Name Placement Target. The DependencyProperty for ResourceNamePlacement property.
Declaration
public static readonly DependencyProperty ResourceNamePlacementProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ResourceNameVisibilityProperty
Dependency registration for Resource name visibility. The DependencyProperty for ResourceNameVisibility property.
Declaration
public static DependencyProperty ResourceNameVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RowHeightProperty
Dependency property for Chart Row Height. The DependencyProperty for RowHeight property.
Declaration
public static readonly DependencyProperty RowHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowChartLinesProperty
The DependencyProperty for ShowChartLines property.
Declaration
public static readonly DependencyProperty ShowChartLinesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowGridLinesOnZoomingProperty
The DependencyProperty for ShowGridLinesOnZooming property.
Declaration
public static readonly DependencyProperty ShowGridLinesOnZoomingProperty
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
Dependency Registration for ShowResizingTooltip Property. The DependencyProperty for ShowResizingTooltip property.
Declaration
public static readonly DependencyProperty ShowResizingTooltipProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StartPointProperty
The DependencyProperty for StartPoint property.
Declaration
public static readonly DependencyProperty StartPointProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StartTimeProperty
The DependencyProperty for StartTime property.
Declaration
public static readonly DependencyProperty StartTimeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StickCurrentDateLineToProperty
The DependencyProperty for StickCurrentDateLineTo property.
Declaration
public static readonly DependencyProperty StickCurrentDateLineToProperty
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
Dependency registration for Connector Stroke. The DependencyProperty for ToolTipTemplate property.
Declaration
public static DependencyProperty ToolTipTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
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. |
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. |
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; }
Property Value
Type | Description |
---|---|
System.DateTime | The end time. |
HighlightItemBrush
Gets or sets the highlight item brush.
Declaration
public Brush HighlightItemBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
Model
Gets the model.
Declaration
public GanttModel Model { get; }
Property Value
Type | Description |
---|---|
GanttModel | The model. |
NonWorkingHoursBackground
Gets or sets the 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. |
ResourceNameForeground
Gets or sets the resource name brush.
Declaration
public Brush ResourceNameForeground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
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. |
ShowChartLines
Gets or sets a value indicating whether [ show chartlines].
Declaration
public bool ShowChartLines { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowGridLinesOnZooming
Declaration
public bool ShowGridLinesOnZooming { get; set; }
Property Value
Type | Description |
---|---|
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 |
|
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; }
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. |
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. |
Methods
ClearContainerForItemOverride(DependencyObject, Object)
Method gets called when clear container for item override.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | element | The element. |
System.Object | item | The item. |
GetContainerForItemOverride()
Method gets called when get container for item override.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
Type | Description |
---|---|
System.Windows.DependencyObject | The new instance of gantt chart row. |
IsItemItsOwnContainerOverride(Object)
Method gets called when the item own container gets override.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean | The bool value. |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnItemsSourceChanged(IEnumerable, IEnumerable)
Method gets called when the item source value gets changed.
Declaration
protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | oldValue | The old value. |
System.Collections.IEnumerable | newValue | The new value. |
OnMouseLeave(MouseEventArgs)
Called when the mouse leaves the gantt chart.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The mouse event arguments. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Called when the mouse left button is up.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The mouse event arguments. |
OnMouseMove(MouseEventArgs)
Called when the mouse move in gantt chart.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The mouse event arguments. |
OnResourceNameVisibilityChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when [resource name visibility changed].
Declaration
public static void OnResourceNameVisibilityChanged(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. |
OnTouchLeave(TouchEventArgs)
Called when the touch leave the gantt chart.
Declaration
protected override void OnTouchLeave(TouchEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.TouchEventArgs | e | The touch event arguments. |
OnTouchMove(TouchEventArgs)
Called when the touch gets moved in gantt chart.
Declaration
protected override void OnTouchMove(TouchEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.TouchEventArgs | e | The touch event arguments. |
PrepareContainerForItemOverride(DependencyObject, Object)
Method gets called when prepare container for item override.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | element | The element. |
System.Object | item | The item. |
RaiseHighlightedItemsChanged(DependencyPropertyChangedEventArgs)
Raises the highlighted items changed.
Declaration
public void RaiseHighlightedItemsChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
Events
HighlightItemsChanged
Occurs when [highlight items changed].
Declaration
public event DependencyPropertyChangedEventHandler HighlightItemsChanged
Event Type
Type |
---|
System.Windows.DependencyPropertyChangedEventHandler |
ProgressBarBrushChanged
Occurs when [progress Indicator Background changed].
Declaration
public event DependencyPropertyChangedEventHandler ProgressBarBrushChanged
Event Type
Type |
---|
System.Windows.DependencyPropertyChangedEventHandler |
ResourceNameVisibilityChanged
Occurs when [resource name visibility changed].
Declaration
public event DependencyPropertyChangedEventHandler ResourceNameVisibilityChanged
Event Type
Type |
---|
System.Windows.DependencyPropertyChangedEventHandler |
TaskNodeBackgroundChanged
Occurs when [Task node background changed].
Declaration
public event DependencyPropertyChangedEventHandler TaskNodeBackgroundChanged
Event Type
Type |
---|
System.Windows.DependencyPropertyChangedEventHandler |