Expression Blend为什么不呈现我的用户控件?它只显示XAML [英] Why isn't Expression Blend rendering my User Control? It's only showing XAML
问题描述
我在Expression Blend 3的VS2008解决方案中打开有效的XAML,并且仅在尝试打开单个XAML文件时显示XAML.我的解决方案/项目全部正确构建并运行.
I'm opening valid XAML within my VS2008 solution in Expression Blend 3 and it is only showing XAML when I try to open individual XAML files. My solution/projects all build and run correctly.
当我进入视图-> 活动文档视图时, 设计视图 ,
When I go to View -> Active Document View the Design View, Split View and XAML View options are all grayed out... which doesn't make much sense.
我不是一个Blend用户,但以前从未发生过这种情况,而我在解决该问题方面空无一物.有什么想法吗?
I'm not much of a Blend user, but this has never happened before, and I'm coming up blank for how to fix it. Any ideas?
推荐答案
您是如何创建项目的?您是否在Visual Studio中使用了类库"模板?
How did you create your project ? Did you use the "Class library" templates in Visual Studio ?
我记得我有一个类似的问题.您可以创建一个新的WPF项目,并将CSPROJ与在Blend中不起作用的项目进行比较.您应该能够看到差异并在CSPROJ中添加缺少的行.
I remember I had a similar problem. You can create a new WPF project and compare the CSPROJ with the one not working in Blend. You should be able to see the differences and add the missing lines in your CSPROJ.
HTH
这篇关于Expression Blend为什么不呈现我的用户控件?它只显示XAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!