Hi,
I am using WPF Infragistics 2012 XamCalender control and my business wants to color code different dates based on some business logic. How can we do that?
e.g let's say All Public holidays in Red, All exchange holidays in Yellow, etc
XamMonthCalendar exposes a CalendarDayStyleSelector property. There is a sample in the sample browser under styling that uses this.
Hi Stefan,
Thanks for your reply.
This doesn't suits our requirements as we don't want the dates to be disabled. We just want it to be color coded based on some business logic.
Hello Deepak,
I have created a sample project for you about the XamDateTimeEditor following the appraoch in the mentioned forum thread. I just move the Styles in the App.xaml file, since the XamMonthCalendar from the DropDown is placed in a Popup and it is not part of the MainWindow's visual tree.
Hope this helps you.
I am changing background color of Calander day in C# by defining Loaded event of Calendar day in XAML
I am using XamDateTimeEditor rather than XamMonthCalendar as it suits our requirement more and not using Disabled dates but CalenderDay Background property to color code.