Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
280e480
Merge pull request #1359 from Syncfusion-Content/hotfix/hotfix-v26.1.35
SyncfusionBuild Jun 12, 2024
17f7292
Merge pull request #1365 from Syncfusion-Content/hotfix/hotfix-v26.1.35
SyncfusionBuild Jun 14, 2024
61bea37
Merge remote-tracking branch 'remotes/origin/hotfix/hotfix-v26.1.35'
DeepakRajSundar Jun 14, 2024
fa47464
Merge pull request #1375 from Syncfusion-Content/hotfix/hotfix-v26.1.35
SyncfusionBuild Jun 15, 2024
908db10
Merge pull request #1394 from Syncfusion-Content/hotfix/hotfix-v26.1.35
SyncfusionBuild Jun 18, 2024
3aa54f2
Merge pull request #1403 from Syncfusion-Content/hotfix/hotfix-v26.1.35
SyncfusionBuild Jun 19, 2024
39e0df4
WPF 892314 - Updated WPF Gantt UG content
TamilarasanGunasekaran Jun 20, 2024
c341fe7
images updated
TamilarasanGunasekaran Jun 20, 2024
3555a04
WPF-889895-Corrected the Property name and Removed Highlight style fr…
satishraj-sf4377 Jun 12, 2024
2304983
WPF-889895-Corrected the Grammar Mistakes
satishraj-sf4377 Jun 12, 2024
fa54277
Revert "WPF-889895-Corrected the Grammar Mistakes"
satishraj-sf4377 Jun 12, 2024
6c426fe
Revert "WPF-889895-Corrected the Grammar Mistakes"
satishraj-sf4377 Jun 12, 2024
9e4b6e4
Date updated
TamilarasanGunasekaran Jun 20, 2024
b2636ba
Review corrections updated
TamilarasanGunasekaran Jun 20, 2024
2596bd0
Merge pull request #1405 from syncfusion-content/Gantt_content_review…
Jeyasri-Murugan Jun 20, 2024
17d0a90
Merge pull request #1346 from syncfusion-content/WPF-889895-DefineCon…
KarkuvelRajan Jun 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions wpf/Diagram/Connector/DefineConnector.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ Connectors can be interactively drawn by clicking and dragging on the diagram su

## Connectors through data source

Connectors are automatically generated based on the relationships defined through the data source. For more information about data source, refer to [Data Source](/wpf/diagram/datasource "DataSource").
Connectors are automatically generated based on the relationships defined through the data source. For more information about data source, refer to [DataSource](/wpf/diagram/datasource "DataSource").

## Add connectors from stencil

Expand All @@ -421,13 +421,13 @@ For more information about adding connectors from stencil, refer to [Stencil](/w

## See Also

[`How to apply built-in theme for node and connector?`](https://support.syncfusion.com/kb/article/9995/how-to-apply-built-in-theme-for-node-and-connector-in-wpf-diagram-sfdiagram)
[How to apply built-in theme for node and connector?](https://support.syncfusion.com/kb/article/9995/how-to-apply-built-in-theme-for-node-and-connector-in-wpf-diagram-sfdiagram)

[`How to decide whether to drag or draw a connection on port at runtime?`](https://support.syncfusion.com/kb/article/8538/how-to-decide-whether-to-drag-or-draw-a-connection-on-port-at-runtime-in-the-wpf-diagram)
[How to decide whether to drag or draw a connection on port at runtime?](https://support.syncfusion.com/kb/article/8538/how-to-decide-whether-to-drag-or-draw-a-connection-on-port-at-runtime-in-the-wpf-diagram)

[`How to customize the context menu?`](https://support.syncfusion.com/kb/article/9270/how-to-customize-the-contextmenu-in-wpf-diagram-sfdiagram)
[How to customize the context menu?](https://support.syncfusion.com/kb/article/9270/how-to-customize-the-contextmenu-in-wpf-diagram-sfdiagram)

[`How to create port at runtime though SetTool?`](https://support.syncfusion.com/kb/article/9967/how-to-create-port-at-runtime-through-set-tool-in-wpf-diagram-sfdiagram)
[How to create port at runtime though SetTool?](https://support.syncfusion.com/kb/article/9967/how-to-create-port-at-runtime-through-set-tool-in-wpf-diagram-sfdiagram)

[How to customize the connection indicator style of node and port?](https://support.syncfusion.com/kb/article/10048/how-to-customize-the-connection-indicator-style-of-node-and-port-in-wpf-diagram-sfdiagram)

Expand Down
Binary file modified wpf/Gantt/Getting-Started_images/Getting-Started_img4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified wpf/Gantt/Getting-Started_images/gantt-control-gantt-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified wpf/Gantt/Getting-Started_images/gantt-control-gantt-grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified wpf/Gantt/Overview_images/gantt-control-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 49 additions & 19 deletions wpf/Gantt/auto-update-hierarchy.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class Task : INotifyPropertyChanged
}

/// <summary>
/// Property for Start Date.
/// Gets or sets the start date.
/// </summary>
public DateTime StartDate
{
Expand All @@ -101,7 +101,7 @@ public class Task : INotifyPropertyChanged
}

/// <summary>
/// Property for Finish Date.
/// Gets or sets the finish date.
/// </summary>
public DateTime EndDate
{
Expand All @@ -117,7 +117,7 @@ public class Task : INotifyPropertyChanged
}

/// <summary>
/// Property for duration value.
/// Gets or sets the duration value.
/// </summary>
public TimeSpan Duration
{
Expand All @@ -133,7 +133,7 @@ public class Task : INotifyPropertyChanged
}

/// <summary>
/// Property for ID value.
/// Gets or sets the id value.
/// </summary>
public int ID
{
Expand All @@ -149,7 +149,7 @@ public class Task : INotifyPropertyChanged
}

/// <summary>
/// Property for Name.
/// Gets or sets the name.
/// </summary>
public string Name
{
Expand All @@ -165,7 +165,7 @@ public class Task : INotifyPropertyChanged
}

/// <summary>
/// Property to define progress value.
/// Gets or sets the progress value.
/// </summary>
public double Progress
{
Expand All @@ -181,7 +181,7 @@ public class Task : INotifyPropertyChanged
}

/// <summary>
/// Property to add child collection.
/// Gets or sets the child collection.
/// </summary>
public ObservableCollection<Task> ChildCollection
{
Expand All @@ -196,6 +196,9 @@ public class Task : INotifyPropertyChanged
}
}

/// <summary>
/// Method to get property changed.
/// </summary>
private void OnPropertyChanged(string propName)
{
if (this.PropertyChanged != null)
Expand All @@ -219,7 +222,7 @@ public class Task : INotifyPropertyChanged
public class ViewModel
{
/// <summary>
/// Property to add child collection.
/// Gets or sets the child collection.
/// </summary>
public ObservableCollection<Task> TaskCollection { get; set; }

Expand Down Expand Up @@ -346,9 +349,21 @@ public class ViewModel
</syncfusion:GanttControl>
{% endhighlight %}
{% highlight c# %}
GanttControl ganttControl = new GanttControl();

this.ganttControl.UseAutoUpdateHierarchy = false;
this.ganttControl.ItemsSource = new ViewModel().TaskDetails;
this.Content = ganttControl;

// Task attribute mapping
TaskAttributeMapping taskAttributeMapping = new TaskAttributeMapping();
taskAttributeMapping.TaskIdMapping = "ID";
taskAttributeMapping.TaskNameMapping = "Name";
taskAttributeMapping.StartDateMapping = "StartDate";
taskAttributeMapping.ChildMapping = "ChildCollection";
taskAttributeMapping.FinishDateMapping = "EndDate";
taskAttributeMapping.DurationMapping = "Duration";
taskAttributeMapping.ProgressMapping = "Progress";
this.ganttControl.TaskAttributeMapping = taskAttributeMapping;

{% endhighlight %}
{% endtabs %}
{% endcapture %}
Expand Down Expand Up @@ -401,7 +416,7 @@ public class Task : NotificationObject
}

/// <summary>
/// Property for duration value.
/// Gets or sets the duration value.
/// </summary>
public TimeSpan Duration
{
Expand Down Expand Up @@ -435,7 +450,7 @@ public class Task : NotificationObject
}

/// <summary>
/// Property for Finish Date.
/// Gets or sets the finish date.
/// </summary>
public DateTime EndDate
{
Expand All @@ -457,7 +472,7 @@ public class Task : NotificationObject
}

/// <summary>
/// Property for Start Date.
/// Gets or sets the start date.
/// </summary>
public DateTime StartDate
{
Expand All @@ -483,7 +498,7 @@ public class Task : NotificationObject
}

/// <summary>
/// Property for Name value.
/// Gets or sets the name value.
/// </summary>
public string Name
{
Expand All @@ -496,7 +511,7 @@ public class Task : NotificationObject
}

/// <summary>
/// Property for ID value.
/// Gets or sets the id value.
/// </summary>
public int Id
{
Expand All @@ -509,7 +524,7 @@ public class Task : NotificationObject
}

/// <summary>
/// Property to add child collection.
/// Gets or sets the child collection.
/// </summary>
public ObservableCollection<Task> ChildCollection
{
Expand Down Expand Up @@ -563,6 +578,9 @@ public class Task : NotificationObject
progress = (this.childCollection.Aggregate(0d, (cur, task) => cur + task.progress)) / this.childCollection.Count;
}

/// <summary>
/// Method to update collection changed.
/// </summary>
public void ChildNodesCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
if (e.Action == NotifyCollectionChangedAction.Add)
Expand Down Expand Up @@ -593,7 +611,7 @@ public class Task : NotificationObject
public class ViewModel
{
/// <summary>
/// Property to add child collection.
/// Gets or sets the child collection.
/// </summary>
public ObservableCollection<Task> TaskCollection { get; set; }

Expand Down Expand Up @@ -723,10 +741,22 @@ public class ViewModel
</syncfusion:GanttControl>

{% endhighlight %}

{% highlight c# %}
GanttControl ganttControl = new GanttControl();
this.ganttControl.UseAutoUpdateHierarchy = false;
this.ganttControl.ItemsSource = new ViewModel().TaskDetails;
this.Content = ganttControl;

// Task attribute mapping
TaskAttributeMapping taskAttributeMapping = new TaskAttributeMapping();
taskAttributeMapping.TaskIdMapping = "ID";
taskAttributeMapping.TaskNameMapping = "Name";
taskAttributeMapping.StartDateMapping = "StartDate";
taskAttributeMapping.ChildMapping = "ChildCollection";
taskAttributeMapping.FinishDateMapping = "EndDate";
taskAttributeMapping.DurationMapping = "Duration";
taskAttributeMapping.ProgressMapping = "Progress";
this.ganttControl.TaskAttributeMapping = taskAttributeMapping;

{% endhighlight %}
{% endtabs %}
{% endcapture %}
Expand Down
Loading