Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1750
Change theme during runtime - Problem with WPF controls
posted

Hello community!

 

After reading about the ThemeManager i added support to switch the theme during the runtime. I activate the theme with the following lines:

var metroTheme = new Infragistics.Themes.MetroTheme()
                             { StyleMicrosoftControls = true };
Infragistics.Themes.ThemeManager.ApplicationTheme = metroTheme;

While the themes of all Infragistics controls on all tabs and panels (even on those in the background) are changed, I have problems with the supported WPF controls (like button, label,...). If the control is on a view in the background, it does not change its theme.

Do I miss something about the changing of the theme?
Attached please find a video with the described behaviour

Thank you for the information

ThemeProblem.rar