I'm styling the expanderbar as below. I can't get it to show. It could be the theme that it's overriding it but I need to set this in a shared resource file, not on part of the actual XamDataGrid resources. Can someone please suggest how to set this in a resource file? Thanks.
<Style TargetType="{x:Type igControls:ExpanderBar}" >
<Setter Property="Background" Value="Blue"/>
<Setter Property="Margin" Value="1,10,1,1"/>
<Setter Property="BackgroundHover" Value="Green"/>
<Setter Property="Visibility" Value="Visible"/>
</Style>
Cristina.
Hello Cristina,
If you are currently applying a theme to the XamDataGrid, any resources that you place outside of the XamDataGrid.Resources will be overwritten by that particular theme. As such, I would recommend that you move any resources that you have to a ResourceDictionary and merge that with the XamDataGrid.Resources section - or just add the styles directly to that section.
Every WPF element only takes one local style, and so by applying a "theme" you are applying a set of styles local to the XamDataGrid, but these can be overwritten by the styles in the XamDataGrid.Resources section.
Please let me know if you have any other questions or concerns on this matter.
Hi Andrew,
I am not applying a theme to XamDataGrid. I am to other controls but not XamDataGrid. I have all shared styles in a shared dictionary. Can you please show me an example of "merge that with the XamDataGrid.Resources section"?
Thank you.
I was able to resolve this. Thank you for all your help!