首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >未定义的命名空间windows phone 7

未定义的命名空间windows phone 7
EN

Stack Overflow用户
提问于 2012-04-16 22:19:55
回答 1查看 418关注 0票数 0

我在WP7中为聊天应用写了这篇文章,我需要把它放到项目中

代码语言:javascript
复制
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

                xmlns:Controls="clr-namespace:Chat.Controls">

我得到了这个错误

代码语言:javascript
复制
Error   7   Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'Chat.Controls' that is not included in the assembly.    C:\Users\Amin\Documents\Visual Studio 2010\Projects\Chat\Chat\WP7_Chat\Control.xaml 4   36  Chat

需要添加程序集还是什么??

EN

回答 1

Stack Overflow用户

发布于 2012-04-16 22:29:26

执行xmlns:Controls="clr-namespace:Chat.Controls"意味着您正在使用当前程序集的本地命名空间(在与该部分XAML相同的项目中),但是编译器指出该命名空间不存在。

因此,要么名称空间错误,要么缺少名称空间后面的程序集(类似于xmlns:Controls="clr-namespace:Chat.Controls;assembly=Chat.Controls"

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10175904

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档