对 Expression Blend 4 中的 XamlParseException 进行故障排除

发布于 2024-09-17 22:48:18 字数 534 浏览 0 评论 0原文

解决 Blend 中的 XamlParseExceptions 问题的最佳方法是什么?

我正在使用 Blend 4 RTM 和 SL4 项目,当我看到“红屏死机”时,我完全被难住了:

“抛出了异常。XamlParseException:[行:0 位置:0]...”

是有一个有帮助的技术列表吗?错误消息完全不透明且无用。通常,当我使用 Toolkit 并尝试设计诸如 HeaderContentControl(实际上是派生类)、NumericUpDown 等内容时,这些类型的错误就会出现在我身上。最近我一直被最后一个家伙困住了,并把所有东西都去掉了。当我尝试查看具有此实例的 UserControl 时,我立即收到 RSOD。

我已经尝试过:

  • 确保项目引用 System.Windows.Controls,即使它们显然不需要它。

  • 确保我使用安装 April Toolkit 的中心位置的相对路径并使用 ....

  • 确保我的样式使用 xmlns 命名空间等正确设置。

What is the best way to troubleshoot XamlParseExceptions in Blend?

I'm using Blend 4 RTM, with a SL4 project, and I get totally stumped when I get the "Red Screen of Death":

"An Exception was thrown. XamlParseException: [Line: 0 Position: 0]..."

Is there a list of techniques that help? The error message is completely opaque and useless. Usually these kinds of errors creep up on me when I use the Toolkit, and try to style things like HeaderContentControl (derived classes actually), NumericUpDown, etc. Most recently I've been stuck with this last guy and have strip everything out... When I try viewing a UserControl that has an instance of this, I get the RSOD right away.

I've tried:

  • Making sure that projects reference System.Windows.Controls, even if they don't apparently need it.

  • Making sure I use relative paths to a central place where the April Toolkit is installed and use ....

  • Make sure my styles are correctly set up with xmlns namespaces, etc.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文