I've followed the example at:
Well, it works for most cases, but it doesn't work if the column visibility is bound to a property, and it is invisible when the grid is loaded. It's hard for me to give a simple example that demonstrates exactly the scenario I have, but I've managed to find a different scenario, which reproduces the problem.
As you can see, the first tab looks fine, but if you switch to the second one, then the textblocks are all black.
If you try to "debug" it with snoop, and it fixes the binding problem.
My scenario is a little different: I have several RadPanes which only one of them is selected. On the other ones, few columns are invisible by using the IsVisible which is bound to a property.
When one of the RadPanes get selected, it loads (and so does the header cells). On the RowLoaded event, I get only the cells that are visible (if I'm correct).
Now if I change that property to true, the column becomes visible, but the textblock is black.
I think both problems are the same.
How do I solve it? I need to have both image and text in the header.