Hello,
I am trying to apply the Windows 7 theme to the RadDataFilter control. If I do so in XAML it works fine. But, if I try to style the control programmatically when the control is loaded (an approach that works for the RadGridView), it does not seem to work. Does anyone know how I can go about styling the control programmatically?
The code I am using is as follows:
As always, any help, pointers or even thoughts would be appreciated!
Thanks,
Mark.
I am trying to apply the Windows 7 theme to the RadDataFilter control. If I do so in XAML it works fine. But, if I try to style the control programmatically when the control is loaded (an approach that works for the RadGridView), it does not seem to work. Does anyone know how I can go about styling the control programmatically?
The code I am using is as follows:
// Specify the theme to use for this control.
Theme theme = ThemeManager.FromName("Windows7");
if (theme != null)
{
StyleManager.SetTheme(this, theme);
}
As always, any help, pointers or even thoughts would be appreciated!
Thanks,
Mark.