Sha*_*tin 3 wpf xaml resourcedictionary
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>
Run Code Online (Sandbox Code Playgroud)
带有错误消息的代码段

| 归档时间: |
|
| 查看次数: |
1625 次 |
| 最近记录: |