views:

218

answers:

3

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.

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?

+1  A: 

How did you create your project ? Did you use the "Class library" templates in Visual Studio ?

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

Jalfp
Interesting! I'll look into that when I get home tonight. Wouldn't have thought of that, thanks! :-)
unforgiven3
A: 

Did you ever find an answer for this?

BillL
... yes - the response I marked as "answer" ...
unforgiven3
A: 

open the project file in notepad and add the following line within the <PropertyGroup>

<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

Found the solution here -> link text

Detached