GridViewColumnHeader 继承自 FrameworkElement,但 GridViewColumn 不继承。这是否意味着我们无法在资源字典中为其设置样式?
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style TargetType="{x:Type GridViewColumn}">
</Style>
<Style TargetType="{x:Type GridViewColumnHeader}">
<Setter Property="Background" Value="LightBlue"/>
</Style>
</ResourceDictionary>
带错误提示的代码片段