您的位置:首页 > 其它

在编写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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐