RadDocking Multiple Custom Themes?

2 posts, 0 answers
  1. Frankie
    Frankie avatar
    6 posts
    Member since:
    Nov 2011

    Posted 14 Dec 2011 Link to this post


    I am attempting to theme two different RadDocking controls, within the same solution, each with its own custom theme. I have followed the instructions/example mentioned here and have been able to get the first theme applied. Is it possible to create a second theme to be applied to another RadDocking control?

    I would also like to apply each theme in XAML, as demonstrated here in the RadDockingTheming Overview.


  2. Dani
    Dani avatar
    848 posts

    Posted 20 Dec 2011 Link to this post

    Hello Frankie,

    Yes, it is possible to have multiple custom themes and apply a different custom theme to a different instance of the RadDocking control. For example:
            <theme1:Theme1 x:Key="Theme1" />
            <theme2:Theme2 x:Key="Theme2" />
        <Grid x:Name="LayoutRoot">
            <telerikDocking:RadDocking Margin="8,8,0,8" HorizontalAlignment="Left" Width="273" telerik:StyleManager.Theme="{StaticResource Theme1}">
                    <telerikDocking:RadPaneGroup telerik:StyleManager.Theme="{StaticResource Theme1}">
                        <telerikDocking:RadPane Header="Pane 1" telerik:StyleManager.Theme="{StaticResource Theme1}"/>
                        <telerikDocking:RadPane Header="Pane 2" telerik:StyleManager.Theme="{StaticResource Theme1}"/>
            <telerikDocking:RadDocking HorizontalAlignment="Right" Margin="0,8,8,8" Width="273"  telerik:StyleManager.Theme="{StaticResource Theme2}">
                    <telerikDocking:RadPaneGroup telerik:StyleManager.Theme="{StaticResource Theme2}">
                        <telerikDocking:RadPane Header="Pane 1" telerik:StyleManager.Theme="{StaticResource Theme2}"/>
                        <telerikDocking:RadPane Header="Pane 2" telerik:StyleManager.Theme="{StaticResource Theme2}"/>

    Remember to include the ThemeInfo attribute in AssemblyInfo.cs:
    [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]

    I hope this helps.

    All the best,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top