I have this style in Generic.xaml
<Style x:Key="WhiteHyperlink" TargetType="Hyperlink">
<Setter Property="Foreground" Value="White" />
</Style>
I have this line in the resource dictionary
<Style TargetType="{x:Type Hyperlink}" BasedOn="{StaticResource WhiteHyperlink}" />
And I want to apply it to this:
<Textblock Grid.Colum="2" >
<Hyperlink Command="{StaticResource ExecuteMailAction}" CommandParameter="{Binding Path=MailboxID}">
<TextBlock Text="{Binding Path=MailboxName}" />
</Hyperlink>
</Textblock>
But the formatting is not being applied. What am I missing?
Thanks