This is a migrated thread and some comments may be shown as answers.

Applying theme to docking

1 Answer 75 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Geoff Smith
Top achievements
Rank 1
Geoff Smith asked on 14 Sep 2010, 05:25 PM
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!

1 Answer, 1 is accepted

Sort by
0
Geoff Smith
Top achievements
Rank 1
answered on 15 Sep 2010, 09:18 AM
Putting the style in Application.Resources seems to do the trick!
Tags
Docking
Asked by
Geoff Smith
Top achievements
Rank 1
Answers by
Geoff Smith
Top achievements
Rank 1
Share this question
or