I have users requesting that they be able to define the colors of the owners. I have two questions regarding this...
Thanks in Advance
RegardsAaron
Both ways do not work for me, the TimelineView still shows different colors for each owner.Did i miss some setting that overwrites or blocks individual color assignments?
for (int i = 0; i < calendarInfo.VisibleOwners.Count; i++) { if (i % 2 == 0) {calendarInfo.VisibleOwners[i].Outlook2007ColorScheme = new Outlook2007ColorScheme(Color.Bisque);}else{calendarInfo.VisibleOwners[i].Outlook2007ColorScheme = new Outlook2007ColorScheme(Color.BlanchedAlmond);}
I also tried assigning colors to Owner.HeaderAppearance.BackColor and BackColor2...
€: Working with version 2014.2... updating is not an option.
€2: Works, just f*cked it up somehow... Anyway, would take advice on best practice :)
The colors used for the WinSchedule Office2007 ViewStyle are based on the 15 selectable colors seen in MS Outlook (see the Tools->Options->Calendar Options applet). All the default colors used by the controls are derived formulaically by modifying the hue and/or saturation of the selected base color. An array containing these stock base colors is returned from the UltraCalendarLook.Outlook2007ColorSchemes.SupportedColors property. You can index into the collection using one of these colors.
Note that you can also assign a "custom color scheme" to an Owner by doing something like the following:
UltraCalendarLook calendarLook = this.ultraMonthViewSingle.CalendarLook;calendarLook.ViewStyle = ViewStyle.Office2007;Color baseColor = Color.FromArgb( 128, 128, 192 );Outlook2007ColorScheme colorScheme = new Outlook2007ColorScheme( baseColor );this.ultraMonthViewSingle.CalendarInfo.Owners[1].Outlook2007ColorScheme = colorScheme;
The color used as the base color should be one that does not lean too much toward any one RGB component, i.e., "pastel" type colors look best.