Are you sure that backcolor opens through UI Automation? From the low-level coding of UI Automation that I made, I have never seen such a property. I just opened Inspect (similar to UISpy) and pointed it to a DataGridView in a C # WinForms application, and this property is not displayed.
So, since it does not seem to be affected, there is no way to understand it through automation, without waiting for the image to be captured and comparing it with some base with a certain threshold (sounds like a mess).
If you cannot somehow embed this information in another automation property (which would require changing the application under testing), I see no way to do this. :(
Samer adra
source share