How to propagate styles to Hyperlinks inside a DataTemplate?
问题 I'm try to set the Foreground colour on a Hyperlink using a Style object in an ancestor's Resources , but it's not having any effect. I even used the BasedOn tip from Changing Hyperlink foreground without losing hover color, but it's not made any difference - I still get a blue hyperlink that is red on hover. Here's the XAML for my controls, including an ItemsControl whose items are shown using a hyperlink: <StackPanel Background="Red" TextElement.Foreground="White"> <StackPanel.Resources>