Hey guys,
I have RadRibbonDropDownButtons with drop down content inside a RadRibbonView.QuickAccessToolBar. I also have functionality to dynamically change telerik themes.
When the application opens, I am able to click the RadRibbonDropDownButtons and see the drop down content perfectly fine, but when I change themes the drop down content does not open. All other telerik components work fine.
Below is the code to dynamically change themes. Any ideas on what would cause the button's not to display their drop down content?
I have RadRibbonDropDownButtons with drop down content inside a RadRibbonView.QuickAccessToolBar. I also have functionality to dynamically change telerik themes.
When the application opens, I am able to click the RadRibbonDropDownButtons and see the drop down content perfectly fine, but when I change themes the drop down content does not open. All other telerik components work fine.
Below is the code to dynamically change themes. Any ideas on what would cause the button's not to display their drop down content?
public
Theme ThisApplicationTheme
{
get
{
return
StyleManager.ApplicationTheme; }
set
{
StyleManager.ApplicationTheme = value;
var binding =
new
Binding(
"ThisApplicationTheme"
) { Source =
this
, Mode = BindingMode.OneWay };
foreach
(Window window
in
Application.Current.Windows)
{
foreach
(var element
in
GetWindow(window).AllChildren<FrameworkElement>().ToList())
{
element.SetBinding(StyleManager.ThemeProperty, binding);
}
}
Application.Current.MainWindow.SetBinding(StyleManager.ThemeProperty, binding);
}
}