Hi,
I have a StackPanel that I dynamically change the contents of every 5 minutes to show the user messages. These messages are displayed as TextBlock or HyperLinkButton. I'm wondering how/if I can set a style within the StackPanels style that will apply to the children.
E.g. I've tried
<Style x:Key="InfoBarStyle" TargetType="StackPanel">
<Setter Property="TextElement.Foreground" Value="WhiteSmoke"/>
<Setter Property="TextElement.FontWeight" Value="Bold"/>
</Style>
Is this possible or do I need to set the style in code behind before I add each UiElement?