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
XamDataGrid cell highlight/background change dynamically


I have a wpf window which has a xamdatagrid and a user control.  The grid's columns represent horus of the day and its rows are days of the year.  The grids' bound objects have a property for each hour of the day.

The user control allows users to populates a DateTime collection.

When the user changes their DateTime collection, I want to iterate through cells of my XamDataGrid, testing each one to see if its corresponding DateTime is included in the user's selection  If it is, I want to highlight that cell.