Hi,
Because the StyleManager is "old" as you say, I'm working on replacing it with implicit themes, but I can't figure out how to apply the implicit theme to a control created in code behind.
For example I have an implicit theme:
Which works fine when I have a RadExpander in xaml:
But when I create one in code behind:
The implicit them is not applied.
Is there a way to apply the implicit theme to "expander"?
Regards,
Bayram
Because the StyleManager is "old" as you say, I'm working on replacing it with implicit themes, but I can't figure out how to apply the implicit theme to a control created in code behind.
For example I have an implicit theme:
<
ResourceDictionary
Source
=
"/PowerBrowser;component/Themes/Telerik.Windows.Controls.xaml"
/>
Which works fine when I have a RadExpander in xaml:
<
telerik:RadExpander
IsExpanded
=
"True"
>
But when I create one in code behind:
RadExpander expander =
new
RadExpander();
The implicit them is not applied.
Is there a way to apply the implicit theme to "expander"?
Regards,
Bayram