Set StaticResource style of a control dynamically in the code
MyXamlObject.Style = (Style)Application.Current.Resources["TextValueLarge1"];
//Sets the ojects style in the same way as this does in the .xaml file:
// <TextBlock x:Name="MyXamlObject" Style="{StaticResource TextValueLarge1}" />
