命名空间 YYY 中不存在名称 XXX (XAML VS12 Windows 8) [英] The name XXX does not exist in the namespace YYY (XAML VS12 Windows 8)

查看:23
本文介绍了命名空间 YYY 中不存在名称 XXX (XAML VS12 Windows 8)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在 Windows 8 上使用 VS12,并破解 ContosoCookbook 代码以制作不同的应用程序.我正在尝试设置一个MainMenu.xaml"页面,并且在我有:

So I'm working in VS12 on Windows 8, and hacking the ContosoCookbook code to make a different app. I'm trying to set up a "MainMenu.xaml" page and in I have:

        <CollectionViewSource
        x:Name="groupedItemsViewSource"
        Source="{Binding Groups}"
        IsSourceGrouped="true"
        ItemsPath="TopItems"
        d:Source="{Binding AllGroups, Source={d:DesignInstance Type=data:FlashCardDataSource, IsDesignTimeCreatable=True}}"/>

我得到的错误是:命名空间using:FlashCards.Data"中不存在名称FlashCardDataSource".

The error I'm getting is: The name "FlashCardDataSource" does not exist in the namespace "using:FlashCards.Data".

...但我不明白它是怎么回事.我从哪里开始寻找?我是 XAML 新手.

...but I don't understand how it doesn't. Where do I start looking? I'm new at XAML.

-肯

推荐答案

如果没有其他可能,请注释使用命名空间的行,重新构建,然后再次构建完整项目.

If nothing else is possible, comment the lines which use the namespace, rebuild, and then build the full project again.

我也尝试重建项目,重新打开 Visual Studio.没有任何帮助.我终于评论了 xaml,重建了项目,取消了 xaml 的注释,终于成功了!奇怪的问题.

I also tried rebuilding the project, reopening Visual Studio. Nothing helped. I finally commented xaml, rebuilt the project, uncommented xaml and it finally worked! Strange issue.

这篇关于命名空间 YYY 中不存在名称 XXX (XAML VS12 Windows 8)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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