I am using the XamGrid and all I needed to do was change the mouseover color of the header, or even disable the mouseover visual state completely. To do this it seems like I have to copy the entire 400 lines of the igPrim:HeaderCellControl style plus the dozens of colors and brushes plus every other style that the igPrim:HeaderCellControl style references and all the styles and resource all of their children reference. All so that I can comment out 3 lines or specify a transparent color for the mouseover visual state. Is this correct? Is there no way to just override that one specific visual state?
Hello,
Thank you for your post. I have been looking into it and I can say that at the moment the approach you use the only one for setting the hover color because it is controlled by a visual state which uses a StaticResource, but if you want I can log a Product Idea for exposing a BackgroudHover Property for the HeaderCellControl.
Looking forward for your reply.
Yes, it would be nice to be able to simply modify the color rather than comment out the 3 lines of code. I ended up commenting out whole sections of the control template that I was not using simply to prevent me from having to add in other templates such as the ListBoxStyle. Even doing that I had to copy 1135 lines of xaml just to change the mouseover color.