问题描述
我有一个带有许多WPF Windows的项目. Expression Blend 2中没有打开1个特定窗口.我想知道我可以使用哪些策略来诊断并避免将来出现此问题.
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.
在大多数情况下,Blend 2将显示一个带有异常的窗口.然后,我将解决导致该异常的问题.但是,这次,这是我得到的例外.
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
该程序实际上运行良好.我想使用Blend查看窗口并完善一些图形.我目前唯一能想到的策略是
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
- 删除Xaml标记以缩小失败的地方.
有没有可以帮助我的提示/技巧或工具?
Is there any tip / trick or tool which can help me out ?
(我无法发布代码,因为它是我的公司代码.我无法创建示例,因为我的示例似乎可以正确地在Blend中加载.)
(I cant post code because its my company code. I cant make an example because my examples seem to load correctly in blend.)
推荐答案
A,我认为除了删除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.
哼哼:(
这篇关于诊断Expression Blend 2无法打开窗口的策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!