I am trying to change the foreground color of the DayViewTimeslotHeader. I assume it has something to do with the TimeslotHeaderTimePresenter, but cannot find any template for this in the DefaultStyles folder.
Thank you!
Hello,
I have logged this with development under ID: 99687 and I have also created a support ticket on your behalf: CAS-82074-C3B3X3 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx
TimeslotHeaderTimePresenter is a custom Panel that dynamically creates the hour, minute and/or am/pm textblocks to mimic the behavior in Outlook. Since it is a panel and not a control it doesn't have a style/template. It sets the foreground of those textblocks to the ComputedForeground of the containing TimeslotHeader. That color is obtained from the DefaultBrushProvider from the containing ScheduleControlBase; that provider basically comes from the ColorScheme that you set on the XamScheduleDataManager. For DayView it will ask for the brush from that provider passing in a CalendarBrushId of TimeslotHeaderForegroundDayView.
So you could create your own custom CalendarColorScheme (likely just derive from Office2010ColorScheme), override the CreateBrush method and return the brush you want for that area. In addition we should probably add a Foreground property to the TimeslotHeaderTimePresenter that we bind to the ComputedForeground (instead of getting the ComputedForeground internally) so you could retemplate that element and bind to something else if you wanted.