在 Prism/silverlight 3 中使用 DataForm 控件时出现 AG_E_PARSER_BAD_TYPE 错误

发布于 2024-07-22 05:13:51 字数 411 浏览 5 评论 0原文

我正在使用 prism 和 SL3,一旦我在任何模块中放置 DataForm 控件,我就会收到此错误:

AG_E_PARSER_BAD_TYPE [Line: 6 Position: 31]
at System.Windows.Application.LoadComponent(Object component, Uri 
  resourceLocator)
at HelloWorldModule.Views.HelloWorldView.InitializeComponent()
at HelloWorldModule.Views.HelloWorldView..ctor()

如果我将 DataForm 控件放入 Shell.xaml 中,只有当我放入任何模块时,我不会收到此错误模块中的视图。 任何人都可以透露一些信息吗?

I'm using prism and SL3, as soon as I drop a DataForm Control in any modules, I get this error:

AG_E_PARSER_BAD_TYPE [Line: 6 Position: 31]
at System.Windows.Application.LoadComponent(Object component, Uri 
  resourceLocator)
at HelloWorldModule.Views.HelloWorldView.InitializeComponent()
at HelloWorldModule.Views.HelloWorldView..ctor()

I don't get this error if I drop the DataForm control in my Shell.xaml, only if I drop in any views in the modules. Can anyone shed some light?

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

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

发布评论

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

评论(2

冷弦 2024-07-29 05:13:51

您需要将 Microsoft.Windows.Controls 添加到您的 ModuleManifest.xaml 中。

You need to add Microsoft.Windows.Controls to your ModuleManifest.xaml..

与他有关 2024-07-29 05:13:51

是的...您需要添加 dll 的引用。 这对我有用。

Yes...you need to add reference of the dll. It worked for me.

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