All,
I have a scenario where I need to change the background of a record under certain conditions. If I do this by defining a style for the DataRecordCellArea then I lose all of the existing style elements.
All our XamDataGrid's are themed with Theme="[current]" so that theme switches by the user apply consistently across all grids.
Applying this style with, or without a key but not basing it on anything in this specific grid reverts back to a default style for items such as hover and selection colors, as expected.
Is there any way that I can, for this grid, define the a background color in the DataRecordCellArea, yet set BasedOn to the current theme's style for DataRecordCellArea?
I've built a static "CurrentThemeResourceLocator" class that allows me to search for a resource in the current theme's dictionaries which can be used in a BasedOn static binding, but it would be good to know if there's something built-in already so I can go and remove the locator i've had to write.