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
1485
Using styles from IG themes
posted

Hi,

I have various controls hosted within a xamDockManager.  I allow users to pick the IG themes - works fine for the ribbon and the dock manager.  However, for some of the controls within the dock manager, I want to reuse some of the styles so that when the user changes the theme, things won't look out of place (e.g. if the user changes  from Aero to Office Black, I don't want to have the background of a label to stick out because it doesn't follow the theme.)

I looked at some of the files in the DefaultStyles directory and tried this:

        <Label
            x:Name="RequestTypeLabel"
            Grid.Row="0"
            Grid.Column="1"
            Background="{StaticResource igDock:DockManagerBrushKeys.XamDockManagerBackgroundFillKey}"
        >

I'm importing these namespaces at the top of the XAML:

    xmlns:igThemes="http://infragistics.com/Themes"
    xmlns:igDock="http://infragistics.com/DockManager"

At runtime I get an error about the resource name for the Background property, so I'm obviously doing something wrong.  So the short question is: "How do I use styles defined in IG themes?"  A short example would be much appreciated.

Thanks,
Michel