带有设计时间数据的Expression Blend错误(Visual Studio中无错误) [英] Expression Blend Error with design time data (no error in visual studio)
问题描述
我从Windows Phone 7应用程序创建了一些设计时间数据,当我在Visual Studio(Express)中查看设计器时,设计时间数据显示得非常好.但是,当我尝试在Expression Blend 4中加载相同的项目时,出现错误,并且没有显示设计时间数据.
I created some design time data from my windows phone 7 application and when I look at designer in Visual Studio (Express), the design time data shows up perfectly fine. However when I try to load the same project in Expression blend 4 I get an error and the design time data doesn't show up.
我得到的错误是非常普通的在我的xaml类中发现错误"",它指向的确切行是:
The error that I get is very generic "Error found in 'my xaml class' " The exact line that it points to is:
<phone:PhoneApplicationPage
...
d:DataContext="{d:DesignData Source=../DesignData/VendorDetailViewDesignData.xaml}"
...
>
我真的不知道会出现什么问题,因为这对于Visual Studio设计师来说可以正常工作.我需要为表情融合做些不同的事情吗?
I really have no idea what the problem could be since this works fine with the visual studio designer. Do I have to do something different for expression blend?
要创建我基本上遵循的设计时间数据
To create the design time data I basically followed
http://blogs.msdn.com/b/mcsuksoldev/archive/2010/08/27/designdata-mvvm-support-in-blend-vs2010-and-wpf-silverlight.aspx
并以其中包含设计时间数据的默认Windows Phone项目为例.
http://blogs.msdn.com/b/mcsuksoldev/archive/2010/08/27/designdata-mvvm-support-in-blend-vs2010-and-wpf-silverlight.aspx
and took the default windows phone projects that have design time data in them as an example.
xaml类位于rootFolder/View/文件夹中,而设计时数据文件位于rootFolder/DesignData/
The xaml class is in a the folder rootFolder/View/ while the design time data files are in rootFolder/DesignData/
感谢您的帮助!谢谢!
哈吉
Any help is appreciated! Thanks!
Haji
推荐答案
没有更多细节,很难知道问题出在哪里.
Without more details it's quite hard to know what the issue might be.
用于此类问题的一个巧妙技巧是,您实际上可以从Visual Studio调试器附加到Blend进程.转到调试"->附加到进程",找到Blend.exe进程并附加到该进程,然后尝试在Blend中打开视图,这应该允许您调试正在发生的事情.
A neat trick to use for these kind of issues, is that you can actually attach to the Blend process from the Visual Studio debugger. Go to Debug -> Attach to Process, find the Blend.exe process and attach to that, then try opening the view in Blend, this should allow you to debug what's going on.
For step by step instructions on this, have a look at: Debugging Design-Time Exceptions
祝你好运!
这篇关于带有设计时间数据的Expression Blend错误(Visual Studio中无错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!