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

Undock lose theme

1 Answer 91 Views
Docking
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 06 Jan 2011, 09:48 AM
Hi,
I'm trying to use the raddocking component and set its theme to expression_dark.

I've noticed when I undock the RadPaneGroup, if I'm not mistaken, lose its theme and the background becomes white.

In you sample codes this problem doesn't occour when I set the theme, so I guess you are doing something else that makes sure the theme won't disappear, but unfortunately the code to change the theme is not provided.

Could you tell me what I'm missing?

And another question related to this issue.
I've tried setting a custom theme to the RadPaneGroup :
<Style TargetType="{x:Type telerik:RadPaneGroup}">
    <Setter Property="Style" Value="{DynamicResource RadPaneGroupStyle3}"/>  
</Style>
    
But when I detach a pane so it would be floating I get the follow error :
"Style object is not allowed to affect the Style property of the object to which it applies."

I guess when the pane float it uses some kind of a diffrent control. If so, could you please tell me what it is?
 The reason I'm doing this is because it seems that when I detach a pane It loses its style even after I dock it again.

any ideas?

Thank you

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 10 Jan 2011, 10:16 AM
Hi David,

Thank you for contacting us.

When the pane is floating it is in a ToolWindow. For more information you could refer to this help article.
As for the setting of the theme - you can set the Application theme to Expression Dark and the white background will disappear. Please find attached a sample project in which this is illustrated.

Hope this information helps. Please let us know if you have further questions.

Regards,
Konstantina
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
Docking
Asked by
David
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or