DependencyProperty.UnsetValue}' is not a valid value for property 'Background' 的错误原因
2013-04-28 11:04
501 查看
查找了一下,发现是资源字典中一个资源(DynamicResource )值没有定义。记一下这个错误,
这个bug找了那么久,最终的解决让我啼笑皆非,原来是一个背景颜色的命名写错了,样式命名中一个字母的大写在资源字典中定义成了小写,程序找不到就报错了!!!!!!!! 唉,xmal里面的错误不像C#语言的一样,微软能准确定位到错误发生的位置,只能靠最后一个"Background"去找,这样好生没有目的性,那么多控件的样式积在那里,所以让人憎恨的复制粘贴还是必须的,浪费了很多时间,以后一定要细心。 |
相关文章推荐
- WPF 错误:DependencyProperty.UnsetValue}' is not a valid value for property 'Background'
- '{DependencyProperty.UnsetValue}' is not a valid value for the '.........Background'
- 错误提示:transform.position assign attempt for 'XXX' is notvalid。Input rotation is {NaN, NaN, NaN, NaN}
- 编译apk的时候提示value for 'keystore' is not valid
- this class is not key value coding-compliant for the key buttonPressed.' 错误解决方式
- 编译错误“The run destination My Mac 64-bit is not valid for Running the scheme '***',解决办法
- linux学习笔记:navicate for mysql连接linux服务器上的mysql出现错误:1130 - Host'ClientIP' is not allowed to connect to
- The run destination My Mac 64-bit is not valid for Running the scheme 'MultiTouchDemo'
- 'Infinity' is not a valid numeric or approximate numeric value 异常信息处理
- Jira的 Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'错误的解决
- class 'mongoClient' not found php_mongo.dll is not a valid Win32 application for windows
- 解决编译错误:Property 'value' not found on object of type '_strong id'
- Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key
- `QtValidLicenseForCoreModule' does not name a type 错误的解决
- 错误解决:There is no getter for property named 'id' in class 'java.lang.String'
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决
- 错误信息:Bean property 'sessionFactory' is not writable or has an invalid setter method.
- Mybatis找不到参数错误:There is no getter for property named 'categoryId' in 'class java.lang.Integer'。
- The run destination My Mac 64-bit is not valid for Running the scheme '*****'.
- WPF Background property does not point to a dependencyobject in path '(0).(1)'