在 Blend 中创建的 SampleData 不起作用

发布于 2024-10-09 14:15:40 字数 579 浏览 0 评论 0原文

我目前正在使用 Expressions Blend 创建一个原型。

我创建了一个 SampleDataSource 并添加了 Collection。这个集合有 5 个简单的属性。

设置完毕后,我将 SampleDataSource 拖放到我在 Blend(同一项目)中创建的 Silverlight 页面并创建了 Datagrid。

SampleData 和网格运行良好。

现在,当我在 Visual Studio 2010 中打开同一页面时,我收到几个错误: 我发现最重要的是: 错误 4 未定义的 CLR 命名空间。 “clr-namespace”URI 引用未包含在程序集中的命名空间“Expression.Blend.SampleData.SampleDataSource”。 C:\Projects\Moneydashboard\Management client\ManagementClient\ManagementClient\SampleDataSource.xaml 6 47 ManagementClient

基本上我想运行在 Blend 中创建的原型,以便在 VS 2010 中运行和编译。

感谢和问候, 马尤尔·科特利卡

I am currently creating a proto using Expressions Blend.

I created a SampleDataSource and added Collection. This collection has 5 simple properties.

After setting that up, I dragged and dropped the SampleDataSource to the Silverlight page that i created in Blend (same project) and created the Datagrid.

The SampleData and the grid works well.

Now when I open the same page in Visual Studio 2010 I get several errors:
The most significant I find is:
Error 4 Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'Expression.Blend.SampleData.SampleDataSource' that is not included in the assembly. C:\Projects\Moneydashboard\Management client\ManagementClient\ManagementClient\SampleDataSource.xaml 6 47 ManagementClient

Basically I want to run the proto I created in Blend to run and compile in VS 2010.

Thanks and regards,
Mayur Kotlikar

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忘羡 2024-10-16 14:15:40

确保您已包含 Blend 项目 (xaml + cs + xsd) 中的所有数据相关文件,并在 App.xaml 文件中正确添加数据源。

考虑在 Blend 中打开 VS2010 项目,然后将数据源直接添加到项目中。您可以通过右键单击 XAML 文件并选择“在 Blend 中编辑”来轻松地在 Blend 中打开 VS2010 项目。

Make sure that you have included all the data related files from your Blend project (xaml + cs + xsd) and added the datasource correctly in the App.xaml file.

Consider opening your VS2010 project in Blend and add the datasource directly to the project that way around. You can easily open your VS2010 project in Blend by right-clicking a XAML file and choose Edit in Blend.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文