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
360
Theme Packs Grids
posted

I am trying to use the ForestGreen theme or any other theme that is built as a dll and i am having trouble.  I can get the theme showing in the designer, but i can't get it at runtime..everything defaults to Office2kBlue it looks like.  At the top of my page i have this:

 

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

xmlns:igThemeForestGreen=http://infragistics.com/Themes/ForestGreen

 

In my resource definition i have it defined as so:

<Page.Resources>

        <ResourceDictionary>

            <ResourceDictionary.MergedDictionaries>

                <ResourceDictionary Source="..\Resources\Theme\ForestGreen.xaml"/>

                <igThemeForestGreen:DataPresenter />

                <igThemeForestGreen:Ribbon />

            </ResourceDictionary.MergedDictionaries>

            <igExcelExporter:DataPresenterExcelExporter x:Key="ExcelExporter"/>

        </ResourceDictionary>

    </Page.Resources> 

 The Forest Green in my resource dictionary is my personal theme for buttons, combo boxes, ect....all non infragistics controls.  They work great....i just can't ge the forest green theme on the grid or ribbon bar

  • 360
    Verified Answer
    posted

    Actually, i had forgotten to include the theme in the resource dictionary like this:

     

    <ResourceDictionary>

    <ResourceDictionary.MergedDictionaries>

    <igThemeForestGreen:DataPresenter />

    <igThemeForestGreen:Ribbon />

    </ResourceDictionary.MergedDictionaries>

    </ResourceDictionary>

     That solved the problem....the themes showed at design time, but not at runtime without them in the resource dictionary

  • 54937
    Offline posted

    I tried this out and it seems to work ok. Is it possible that you are setting the Theme property of the DataPresenter/Ribbon in code? If not, do you have a sample I can use to see the issue?