Hello,
I read many post in this forum, but still not have answer.
How to apply current telerik theme to TextBox?
So no hardcoded theme but current theme.
We have function like this:
So in XAML I cant hardcode any theme.
I read many post in this forum, but still not have answer.
How to apply current telerik theme to TextBox?
So no hardcoded theme but current theme.
We have function like this:
internal
static
void
ApplyConfiguredTheme()
{
switch
(GetConfiguredTheme())
{
case
ThemeEnum.Black:
StyleManager.ApplicationTheme =
new
Office_BlackTheme();
break
;
case
ThemeEnum.Blue:
StyleManager.ApplicationTheme =
new
Office_BlueTheme();
break
;
case
ThemeEnum.Silver:
StyleManager.ApplicationTheme =
new
Office_SilverTheme();
break
;
case
ThemeEnum.Win7:
StyleManager.ApplicationTheme =
new
Windows7Theme();
break
;
}
}
So in XAML I cant hardcode any theme.