Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Styling specific days in a XamCalendar
posted

Can you provide an example/guidance of how to selectively style specific days in a month in a XamCalendar? Specifically I am trying to change the Foreground color of specific days based on business rules.

Parents
  • 14517
    Verified Answer
    Offline posted

    Hello Mike,

    You can create a style which targets CalendarDay and in the style use a converter to change the foreground color based on your business logic. You can then tell the Calendar to use this style by specifying the CalendarDayStyle.

    See attached sample.

    Let me know if you have any questions.

    Sincerely,

    Valerie

    Developer Support Supervisor - XAML

    Infragistics

    www.infragistics.com/support

    SLCalendarDayStyle.zip
Reply Children
No Data