Creating a schedule based on a definition string in Gantt Chart Library and Project Management Library for WPF

If you have a schedule definition string and would like to dynamically create a schedule object represented by that string (for example, to set it as the Schedule property of a Gantt Chart control), you can use the approach presented below (note that ScheduleDefinitionManager is a static class available within DlhSoft.Windows.Data namespace, and hosted by DlhSoft.ProjectData.Core assembly):

string scheduleDefinitionString = "Monday-Saturday 05:00-12:00, Sunday 08:00-11:00";
Schedule schedule = ScheduleDefinitionManager.CreateSchedule(scheduleDefinitionString);
GanttChartTaskListView.Schedule = schedule;