Thanks for your answer! I applied succeed with your solution. Now I has more question.
. If I want to change the theme Vista to an another theme what should I do?. Such as
RainierPurple theme. can It change as the following code in MS standard control.
Uri uri = new Uri(@"SilverlightPrototype;component/ThemeBrowser/RainierPurple.xaml", UriKind.Relative);
ImplicitStyleManager.SetResourceDictionaryUri(LayoutRootSt, uri);
ImplicitStyleManager.SetApplyMode(LayoutRootSt, ImplicitStylesApplyMode.Auto);
ImplicitStyleManager.Apply(LayoutRootSt);
<UserControl.Resources> |
<telerik:Theme x:Key="vistaTheme" |
Source="/Telerik.Windows.Themes.Vista;component/Themes/generic.xaml" /> |
</UserControl.Resources> |
<Grid x:Name="LayoutRoot" Background="White"> |
<Button telerik:StyleManager.Theme="{StaticResource vistaTheme}" /> |
</Grid> |
</UserControl> |