Hi,
I am using the day view, month view wpf controls and when week is selected it shows 5 days, each day is a shift(i.e. has a specific start and end time). The days may not always run in sequence so it could be Monday, Tuesday etc or Friday, Saturday etc (this I do with the visible dates option). What I can't work out is how to make each day show its own time range.
e.g. Monday 09:00 - 17:00, Tuesday 09 - 14:00, Wednesday 18:00 - 02:00
Also the day view only runs from 00:00 to 23:00, you cannot create working hours that start at say 18:00 and end at say 04:00(a night shift).
Is this possible with the daysettings function.
thanks in advance
Hello Anne,
I have been looking into your question and you can set the working hours only for specific day. If you would like to specify working hours for every day, you could declare them like e.g. :
<ig:XamScheduleDataManager.Settings>
<ig:ScheduleSettings>
<ig:ScheduleSettings.DaysOfWeek>
<ig:ScheduleDaysOfWeek>
<ig:ScheduleDaysOfWeek.Monday>
<ig:ScheduleDayOfWeek>
<ig:ScheduleDayOfWeek.DaySettings>
<ig:DaySettings IsWorkday="True">
<ig:DaySettings.WorkingHours>
<ig:WorkingHoursCollection>
<ig:TimeRange Start="11:00:00" End="13:00:00" />
<ig:TimeRange Start="15:00:00" End="17:00:00" />
</ig:WorkingHoursCollection>
</ig:DaySettings.WorkingHours>
</ig:DaySettings>
</ig:ScheduleDayOfWeek.DaySettings>
</ig:ScheduleDayOfWeek>
</ig:ScheduleDaysOfWeek.Monday>
<ig:ScheduleDaysOfWeek.Wednesday>
<ig:TimeRange Start="07:00:00" End="10:00:00" />
<ig:TimeRange Start="12:00:00" End="14:00:00" />
</ig:ScheduleDaysOfWeek.Wednesday>
</ig:ScheduleDaysOfWeek>
</ig:ScheduleSettings.DaysOfWeek>
</ig:ScheduleSettings>
</ig:XamScheduleDataManager.Settings>
Let me know, if you need any further assistance on this matter.
Unfortunately this does not answer my question. As in your example you are making the assumption that for example the Monday shift will always be 11:00 - 13:00 etc. For my request the shift on a Monday can be any time range it will not always be the same, this will only work if I can dynamically create daysofweek and bind it, is this possible?. It also does not allow me to enter a shift that starts at say 18:00 and ends at 02:00( a night shift for example).