Converts custom resource items referring custom task items to a collection of ScheduleChartItem objects referring GanttChartItem objects (as required by Items properties of ScheduleChartDataGrid and ScheduleChartView components). Use *Member properties of the converter instance to control which properties of custom items are bound to which ScheduleChartItem and GanttChartItem properties (undefined/null Member values indicate properties that are not bound and default values are automatically generated for these properties on ScheduleChartItem and GanttChartItem objects instead). The converter uses reflection to retreive the appropriate property values from your custom data objects and apply them to the corresponding ScheduleChartItem and GanttChartItem instances. Referred member properties of custom items should be public and accessible for reading and optionally writing (property paths are not supported). Set UpdateSourceOnTargetChanges and/or UpdateTargetOnSourceChanges properties to true/false to indicate the directions of internally managed change updates. Note that UpdateTargetOnSourceChanges works only when the custom data source implements INotifyCollectionChanged interface and/or custom data objects implement INotifyPropertyChanged interface. When UpdateSourceOnTargetChanges is set new objects that need to be created are generated by Activator.CreateInstance internal calls, and therefore they need to provide public access to their parameterless constructor (or their default constructor).

Namespace:  DlhSoft.Windows.Controls
Assembly:  DlhSoft.ProjectData.GanttChart.LightWPF.Controls (in DlhSoft.ProjectData.GanttChart.LightWPF.Controls.dll)

Syntax

C#
public class ResourceItemsConverter : IValueConverter
Visual Basic (Declaration)
Public Class ResourceItemsConverter _
	Implements IValueConverter

Inheritance Hierarchy

System..::.Object
  DlhSoft.Windows.Controls..::.ResourceItemsConverter

See Also