Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Docking > Applying theme to docking

Not answered Applying theme to docking

Feed from this thread
  • Geoff Smith avatar

    Posted on Sep 14, 2010 (permalink)

    My app has Vista as the default style and I would like to use Office_Black as the style for and instance of RadDocking. So far I've got this:

    <Controls:RadDocking Grid.Row="0" Controls1:StyleManager.Theme="Office_Black">
     
        <Controls:RadDocking.DocumentHost>
            <Controls:RadSplitContainer >
                <Controls:RadPaneGroup>
     
                    <Controls:RadPane Header="Tab 1">
                        <UserControl1/>
                    </Controls:RadPane>
     
                    <Controls:RadPane Header="Tab 2">
                        <UserControl2/>
                    </Controls:RadPane>
     
                </Controls:RadPaneGroup>
            </Controls:RadSplitContainer>
        </Controls:RadDocking.DocumentHost>
    </Controls:RadDocking>

    However, The style is applied to the tabs, but the RadPaneGroup is still the Vista style (a blue glow). If I set the StyleManager.Theme on each RadPane, then it is style correctly, but loses the style if I drag the control to another position in the dock. I've tried creating a style in RadDocking.Resources targetting the RadPaneGroup, but that doesn't work at all:

    <Controls:RadDocking.Resources>
                    <Style TargetType="{x:Type Controls:RadPaneGroup}">
                        <Setter Property="Controls1:StyleManager.Theme" Value="Office_Black"/>
                    </Style>
    </Controls:RadDocking.Resources>

    Any suggestions how I can get my docking elements to all be styled as Office_Black? Thanks!

    Reply

  • Geoff Smith avatar

    Posted on Sep 15, 2010 (permalink)

    Putting the style in Application.Resources seems to do the trick!

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Docking > Applying theme to docking