跟踪WPF System.Windows.ResourceDictionary警告资源未找到 [英] Trace WPF System.Windows.ResourceDictionary warning Resource not found
问题描述
输出窗口出现错误。我找不到什么问题?
I get below error on output window. I can't find what is the problem?
System.Windows.ResourceDictionary警告:9:找不到资源;
ResourceKey = '17'System.Windows.ResourceDictionary警告:9:
找不到资源; ResourceKey ='#FF000000';
ResourceKey.HashCode ='51639504';
ResourceKey.Type ='System.Windows.Media.SolidColorBrush'
System.Windows.ResourceDictionary警告:9:找不到资源;
ResourceKey = '17'System.Windows.ResourceDictionary警告:9:
找不到资源; ResourceKey ='#FF000000';
ResourceKey.HashCode ='51639504';
ResourceKey.Type ='System.Windows.Media.SolidColorBrush'
System.Windows.ResourceDictionary警告:9:找不到资源;
ResourceKey = '17'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='17' System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='#FF000000'; ResourceKey.HashCode='51639504'; ResourceKey.Type='System.Windows.Media.SolidColorBrush' System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='17' System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='#FF000000'; ResourceKey.HashCode='51639504'; ResourceKey.Type='System.Windows.Media.SolidColorBrush' System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='17'
如何找到什么是错误?
推荐答案
我建议搜索整个解决方案一个字符串,如 {StaticResource 17}
, {DynamicResource 17}
或 {x:Static 17}
。你不能跟踪这样的东西。你必须修复一些错误的xaml。
I suggest to search your entire solution for a string like {StaticResource 17}
, {DynamicResource 17}
or {x:Static 17}
. You cannot trace something like that. There's some faulty xaml you have to fix.
这篇关于跟踪WPF System.Windows.ResourceDictionary警告资源未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!