首页 > Windows开发 > 详细

Failed to create a 'System.Type' from the text ' ' in wpf(无法从文本创建类型)

时间:2015-09-17 16:45:16      阅读:635      评论:0      收藏:0      [点我收藏+]
问题描述:
WPF is unable to create a type for data template
WPF使用mvvm模式无法加载DataTemplate模板定义的资源,提示无法从文本创建类型错误。
原因:
Resource Dictionary的编译动作被设置成了Resource,设置成Page则不会出现这个问题。
解决方案:
将文件的编译行为修改为“Page”。

 

 

Failed to create a 'System.Type' from the text ' ' in wpf(无法从文本创建类型)

原文:http://www.cnblogs.com/dadream/p/4816375.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!