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}.
Hello Varun,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
How can I mark this as "Answer".
But this is a bug in your IGtheme, that the foreground color is not reflecting according to our value.
I hope, this should be reported or verified as a bug.
Regards,
Hello VJ,
Could you please send me an isolated sample project, where this issue is reproduced, so I can double check your behavior and determine if I should log a dev issue.
Looking forward for your reply.