Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
ExpanderBar not displaying
posted

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.

Parents
No Data
Reply
  • 34810
    Offline posted

    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.

Children