如果我在XAML中使用以下内容,则会收到错误消息:
<Style TargetType="TreeViewItem">
<Style.Triggers>
<DataTrigger Binding="{Binding Selected}" Value="True">
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightColor}}"/>
</DataTrigger>
</Style.Triggers>
</Style>
Run Code Online (Sandbox Code Playgroud)
错误是:
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='#FF316AC5'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1628 次 |
| 最近记录: |