I have XamDataTree with checkbox enabled.
The checkbox content is appearing Black, I want to change it to white.
I'm applying my own style for checkbox. The whole style is reflecting but foreground of the content is not reflecting it's change. The foreground remains black. i have tried giving a hardcoded value as white, but still the same issue.
Can anyone help me in this.
Thanks,
VJ
I just want to add 1 more detail in this query.
Firstly, I didn't took the IGTheme. It was plain and simple XamDataTree.
But since, I have included IGTheme code, this problem has started.
So, may be there could be an issue in IGTheme also.
The solution is:
In the following style
<Style TargetType="igDT:XamDataTreeNodeControl">
You will find a code:
<ContentControl x:Name="contentControl" Grid.Column="5"> <ContentPresenter x:Name="ContentPresenter" Margin="{TemplateBinding Padding}" TextElement.Foreground="White" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" /> </ContentControl>
I wanted only white, So, I have made the foreground as white. Else, we can do {TemplateBinding Foreground}.