I use a converter to conditionally change DataRecordPresenter Background color works well, at first. Here's my problem. The converter checks a boolean property of the class, if true change color to red else do nothing (Binding.DoNothing). At first everything seems right but if I scroll or sort every record is now red.
My app allows the user to change theme and grid uses alternate row colors. So my questions is how do I get current theme colors and how would I know in the converter which color to apply (alternate color or non-alternate) for the false state to revert it back to normal?
Thanks a bunch
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking through your post and I suggest you look through this blog:
http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/12/09/common-style-issues-when-using-the-theme-property.aspx
where it is explained how to use styles and themes at the same time. You can also see this forum thread:
http://news.infragistics.com/forums/p/58044/297082.aspx
where there is a sample project with alternate row colors.
Feel free to write me if you have further questions.