Strategy to diagnose Expression Blend 2 failure to open Window

有些话、适合烂在心里 提交于 2019-12-24 08:37:39

问题


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.)


回答1:


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 :(



来源:https://stackoverflow.com/questions/1878674/strategy-to-diagnose-expression-blend-2-failure-to-open-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!