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

RadPanes Lose theme

1 Answer 31 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 15 Feb 2012, 03:22 AM
I intially wanted to design my application to allow users to choose a display theme. However when selecting themes i noticed alot of panes would lose content, or it would just randomly crash when switch themes.

SO instead i just set the default theme and dont let them change. However i have found that it randomly loses themes whenever i pin/unpin one of the panes

Here is my combobox which i have just set to a default theme

 

<telerik:RadComboBox x:Name="comboTheme" Visibility="Collapsed" SelectionChanged="comboTheme_SelectionChanged" SelectedIndex="7" HorizontalContentAlignment="Center" Width="150">

 

<telerik:Office_BlackTheme/>

 

<telerik:Office_BlueTheme/>

 

<telerik:Office_SilverTheme/>

 

<telerik:VistaTheme/>

 

<telerik:Windows7Theme/>

 

<telerik:SummerTheme/>

 

<telerik:MetroTheme/>

 

<telerik:Expression_DarkTheme/>

 

</telerik:RadComboBox>

and then throughout my xaml i have the following

telerik:StyleManager.Theme="{Binding ElementName=comboTheme,Path=SelectedItem,Mode=TwoWay}"

One of my panes by default is docked but unpinned. when i pin it or move it/dock it all of my ui suddently loses its theme and defaults back to office black.

Any idea why ?

 

 

 

 


1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 20 Feb 2012, 10:48 AM
Hi,

Changing themes at runtime is not supported for RadDocking control. The best you can achieve is to reset the UserControl holding the RadDocking when the theme changes. You can find attached a sample project demonstrating this.

Greetings,
Ivo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Docking
Asked by
Ian
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or