诊断 Expression Blend 2 无法打开窗口的策略
我有一个包含许多 WPF Windows 的项目。 1 个特定窗口在 Expression Blend 2 中无法打开。我想知道将来可以使用哪些策略来诊断和避免该问题。
大多数时候,Blend 2 会显示一个例外的窗口。然后我会解决导致该异常的问题。然而,这一次,这是我得到的例外。
Exception: Cannot create an instance of System.Windows.Window.
StackTrace: Empty
InnerException: None
该程序实际上运行良好。我想使用混合来查看窗口并完善一些图形。目前我能想到的唯一策略是
- 删除 Xaml 标记以缩小其失败的范围。
有什么提示/技巧或工具可以帮助我吗?
(我无法发布代码,因为它是我的公司代码。我无法制作示例,因为我的示例似乎在混合中正确加载。)
I have a project with many WPF Windows. 1 particular Window doesn't open in Expression Blend 2. I would like to know what strategies i can use to diagnose and avoid the problem in future.
Most of the time, Blend 2 will display a window with an exception. I would then fix the problem causing that exception. However, this time, this is the exception i get.
Exception: Cannot create an instance of System.Windows.Window.
StackTrace: Empty
InnerException: None
The program actually works fine. I want to use blend to view the windows and polish up some of the graphics. The only strategy i can think of at the moment is
- Remove Xaml markup to narrow down where its failing.
Is there any tip / trick or tool which can help me out ?
(I cant post code because its my company code. I cant make an example because my examples seem to load correctly in blend.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
唉,我认为除了删除 xaml 代码之外,我没有什么技巧可以使用,直到找到问题为止。我还会尝试在 Visual Studio 2008 中查看 xaml,以验证 xaml 的格式是否确实良好。
呵呵 :(
Alas, i think there is no tricks i can use other than removing xaml code until i find the problem. I also would try viewing the xaml in visual studio 2008 just to verify that the xaml is really well formed.
Ho hum :(