Hello,
How would do I make the selected date have the same style as if I'm pointing the mouse on a date. i.e Blue Filled square ? Theme= IgTheme (infragistics)
How to apply the metro theme to the Calendar ?
Thank you
I found this page and it was sufficient to answer the second part of my question.
http://help.infragistics.com/Help/Doc/WPF/2015.1/CLR4.0/html/themeManager_Applying_Theme_to_Control.html
Hello User101,
I am glad you were able to find out how to apply the MetroDark theme to the XamCalendar control.
Regarding making the selected date have the same style as if you were pointing the mouse at the date as in the IgTheme, I would recommend using the ResourceProvider property of the XamCalendar to do this. This property will allow you to define a CalendarResourceProvider and set its ResourceSet property to a CalendarResourceSet.<themeName> for the theme that you wish to base off of.
The CalendarResourceProvider has a ResourceOverrides property, which you can then assign a new ResourceDictionary to and add new entries to. By overriding certain CalendarResourceId values with your own values, you can then override the selected colors for the calendar items. It appears that the main ones that you would want to override in this case would be the CalendarResourceId.SelectedFocusedItemBackgroundBrush and the CalendarResourceId.SelectedFocusedItemForegroundBrush in this case.
I have attached a sample project to demonstrate the above. I hope this helps you.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer