Silverlight动态设置样式
1.从页面资源中获取样式并应用
btnTest.Style = (Style)this.Resources["BigButtonStyle"]
ResourceDictionary dictionary = new ResourceDictionary();dictionary.Source = new Uri("/Test.xaml",UriKind.Relative);
btnTest.Style = (Style)dictionary["SmallButtonStyle"];
btnTest.Style = null