Hi all,
my actual solution contains several xaml-files containing infragistics controls.Each control has its own Theme="Office2k7Black" set.
Now I want to be able to switch the theme on the fly for all controls.The ThemeManager (14.2) does not support all available themes e.g. "Office2k7Silver".
It is not important if Microsoft's WPF-Controls would not be affected by the theme-switch.
How can I solve this issue?
Best regards!
Hello,
Thank you for your post.
I have been looking into it, but it seems like I am missing something about your scenario, so if this is still an issue for you, could you please send me, an isolated sample project, where this is reproduced, so I can investigate it further for you.
Looking forward to hearing from you.
Hi,
I found the solution for my problem in Infragistic's MultipleControlThemeingApp-Demo.
The comment was the key!
private void themeCombo_SelectionChanged( object sender, SelectionChangedEventArgs e) {
private void themeCombo_SelectionChanged(
// setting the theme property to [current] is a requirement for the // CurrentTheme property to take effect. // you should set this in the XAML to all of the controls that you // want to be affected by the current theme
// setting the theme property to [current] is a requirement for the // CurrentTheme property to take effect.
string themeName = themeCombo.SelectedValue.ToString(); ThemeManager.CurrentTheme = themeName;
string themeName = themeCombo.SelectedValue.ToString();
}
Thank you!
Hello ,
Thank you for your feedback. I am very glad that you have managed to resolve your issue.
Please let me know if you require any further assistance on the matter.