在编写wpf界面时候中出现如下错误: 类型引用不明确。至少有两个名称空间(“System.Windows”和“System.Windows”)中已出现名为“VisualStateManager”的类型。请考虑调整程序集 XmlnsDefinition 特性。
2015-04-25 09:43
751 查看
wpf中类型引用不明确。至少有两个名称空间(“System.Windows”和“System.Windows”)中已出现名为“VisualState
你是不是用了WPFToolKit?如果是的,那原因就是WPFToolKit里也有VisualState,与WPF中的VisualState引用不明确,可以添加原先VisualState的引用:xmlns:sysWin="clr-namespace:System.Windows;assembly=PresentationFramework"
然后给每个VisualState、VisualStateManager还有VisualStateGroup加上sysWin前缀就可以了
转载请保留出处:http://www.01yun.com/dotnet_question/20131017/635784.html
相关文章推荐
- 编译器错误信息: CS0234: 类型或命名空间名称“Windows”在类或命名空间“System”中不存在(是否缺少程序集引用?)
- 编译器错误消息: CS0234: 命名空间“System”中不存在类型或命名空间名称“Linq”(是否缺少程序集引用?)
- 在引用KindEditor编辑器时,运行时出现以下错误:错误46 找不到类型或命名空间名称“LitJson”(是否缺少 using 指令或程序集引用?)
- 编译器错误消息: CS0234: 命名空间“System.Web.Mvc”中不存在类型或命名空间名称“Ajax”(是否缺少程序集引用?)
- 编译器错误消息: CS0234: 命名空间“System.Web”中不存在类型或命名空间名称“Helpers”(是否缺少程序集引用?)
- 命名空间“System.Data”中不存在类型或命名空间名称“SQLite”。是否缺少程序集引用。解决办法如下:
- 编译器错误消息: CS0234: 命名空间“System.Web.Mvc”中不存在类型或命名空间名称“Ajax”(是否缺少程序集引用?)
- 在类库中出现命名空间“System”中不存在类型或命名空间名称“Linq”(是缺少程序集引用吗?)”的解决办法
- 提问:错误提示--命名空间“System.Web”中不存在类型或命名空间名称“UI”(是缺少程序集引用吗?) 如何解决??
- 提问:错误提示--命名空间“System.Web”中不存在类型或命名空间名称“UI”(是缺少程序集引用吗?) 如何解决??
- 编译器错误消息: CS0234: 命名空间“System.Web”中不存在类型或命名空间名称“Optimization”(是否缺少程序集引用?)
- 错误 4 命名空间“System.Configuration”中不存在类型或命名空间名称“ConfigurationManager”。是否缺少程序集引用?
- 命名空间“System”中不存在类型或命名空间名称“Linq”。是否缺少程序集引用?
- 命名空间“System.Web”中不存在类型或命名空间名称“Optimization”(是否缺少程序集引用?)
- aspx文件,app_code内的类无法使用的排查 编译器错误消息 CS0246 找不到类型或命名空间名称“QPUtils”(是否缺少 using 指令或程序集引用)
- 命名空间"System.web”中不存在类型或命名空间名称"UI”(是缺少程序集引用)
- C# 命名空间"DevExpress.XtraReports.UserDesigner"中不存在类型或命名空间名称"XRTabbedMdiManager"。是否缺少程序集引用?
- 怎么解决asp.net错误:缺少using 指令或程序集引用 找不到类型或命名空间名称StringBuilder&using的用法
- 命名空间“System.Data”中不存在类型或命名空间名称“Entity”(是否缺少程序集引用?)
- CS0234: 命名空间“System.Web.Mvc”中不存在类型或命名空间名称“Ajax”(是否缺少程序集引用?)