I'm using Winforms UltraTimeline component and I try to disable (non-working hours) or define different color for lunch break.
This component allows to manage begin and end of a day (working) but I can't find how to change diplay of specific hours. Is it possible ?
Thanks for your anser.
PS : I'm using Visual Studio 2013 (c# winforms)
Hello ,
What you could do is to define different color for NonworkingHour via NonworkingHourAppearance, on the following link you will find simple tutorial of how to do this:
http://help.infragistics.com/Help/Doc/WinForms/2014.2/CLR4.0/html/Infragistics4.Win.UltraWinSchedule.v14.2~Infragistics.Win.UltraWinSchedule.UltraTimelineView~NonWorkingHourAppearance.html
Please let me know if you have any further questions.
Thanks for your anser,
I found how to change apparence but I'm looking for the way to define 12:00 to 14:00 range as non-working hours.
I found the begin and the end of the day but no way to define a breank during this working period.
Any idea ?
What you could do is to manually define working hours as two time ranger 8 AM – 12 AM and 14 PM – 19 PM, to do this you should use WorkingHours collection, more information about this collection you will find on the following link:
http://help.infragistics.com/Help/Doc/WinForms/2014.2/CLR4.0/html/Infragistics4.Win.UltraWinSchedule.v14.2~Infragistics.Win.UltraWinSchedule.DayOfWeek~WorkingHours.html
and here is simple code snipped that you could use:
ultraTimelineView1.NonWorkingHourAppearance.BackColor = Color.Red;
ultraCalendarInfo1.DaysOfWeek[DayOfWeek.Monday].WorkingHours.Add(new TimeSpan(8, 0, 0), new TimeSpan(12, 0, 0));
ultraCalendarInfo1.DaysOfWeek[DayOfWeek.Monday].WorkingHours.Add(new TimeSpan(13, 0, 0), new TimeSpan(18, 0, 0));
I hope that this will helps you.
That's exactilly what I was lookin' for (c;
Thanks a lot