Windows演示基础(WPF)项目不支持(元素名称)。 [英] (Element Name) is not supported in a windows presentation foundation (WPF) project.

查看:621
本文介绍了Windows演示基础(WPF)项目不支持(元素名称)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个大型WPF项目,项目中的每个自定义控件都有许多独立的资源文件。直到几周前,当我尝试在Blend中打开应用程序时,一切都很好。当我尝试打开任何.XAML文件时,我收到每个元素的错误
说:在Windows演示文稿基础中不支持:b


(元素名称) (WPF)项目。



这是针对整个项目中的每个WPF元素。我不知道在Blend开头之间发生了很多工作后发生了什么变化。



我们在Any CPU解决方案平台上使用.NET 4解决方案配置。



有没有人经历过这个?有人有解决方案吗?
b
$
谢谢大家。我期待着您的回复。



Adam

Hi all,

I have a large WPF project with many separated resource files for each custom control in the project. All was fine until a couple of weeks ago when I tried to open up the application in Blend. When I try to open any .XAML file I get an error for each element saying:

(Element Name) is not supported in a windows presentation foundation (WPF) project.

This is for every single WPF element throughout the entire project. I don’t know what was changed as a lot of work happened in between openings in Blend.

We are using a .NET 4 solution in the Any CPU Solution Platform configuration.

Has anyone experienced this before? Has anyone got a solution?

Thanks people. I look forward to hearing back from you.

Adam

推荐答案

嗨亚当,

关于打开Blend(4?)中的Visual Studio解决方案似乎是一个问题。我进行了测试,没有样品很难找到原因。您能否分享一个可以重现此问题的示例?

It seems that an issue about opening a Visual Studio solution in the Blend (4 ?) . I performed a test, it is hard to find the cause without a sample. Could you please share a sample that can reproduce this issue?

顺便说一下,Windows演示基础(WPF)中不支持" (元素名称) 。项目 "看来你没有为这个XAMl文件添加XML命名空间,请确保XAMl文件中有以下两个namespce:

By the way, "(Element Name) is not supported in a windows presentation foundation (WPF) project." It seems you do not add the XML namespace for this XAMl file, please ensure below two namespce in the XAMl file:


xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"


这篇关于Windows演示基础(WPF)项目不支持(元素名称)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆