Bar templating with plain object or DataTable binding within Gantt Chart Library and Project Management Library for WPF

The Bar Templating sample applications included with the product are using WPF attached properties to add special bar templating information to TaskItem objects (DependencyObject based). If you data bind the control ItemsSource to plain objects or to a rows in a DataTable/DataView, you are unable to use attached properties.

To be able to customize the standard task bar template without using attached properties you will need to provide supplemental properties within the bound item objects or new columns added to the source DataTable. A full example of bar templating when using DataTable binding is available for download: Custom Table Data Binding Bar Templating sample.