If I set ApplicationTheme to Vista as below:
public Page() |
{ |
StyleManager.ApplicationTheme = ThemeManager.FromName("Vista"); |
InitializeComponent(); |
} |
and set RadPanelBar as below:
private void UserControl_Loaded(object sender, RoutedEventArgs e) |
{ |
StyleManager.SetTheme(RadPanelBar1, ThemeManager.FromName("Office_Black")); |
RadPanelBar1.Items.Add(new RadPanelBarItem() { Header = "Test" }); |
} |
RadPanelBar 's theme is still Vista.But if I set
StyleManager.ApplicationTheme = ThemeManager.FromName("Summer");
and set
StyleManager.SetTheme(RadPanelBar1, ThemeManager.FromName("Vista");
RadPanelBar 's theme is Vista.
Why the first fails ?