New to SilverLight and want to know how to set a style dynamically / programmatically to a silver light element?

Here is an example code snippet, where a predefined style in your App.xaml is set to a Silverlight Button dynamically.

//If the style is defined in Page.XAML's Application.Resources Section
button.Style = this.Resources["style key"] as Style;
// if your style is defined in the current XAML control as Control.ResouceDictionary section
button.Style = button.Resources["style key"] as Style;

SocialTwist Tell-a-Friend