Blend not showing WPF UserControls

When you create a project (a WPF class library in my case) and you would like to edit the usercontrols in Blend, you can be in for a suprise.

Blend sometimes only shows you the XAML and won’t let you design the UserControl/window. The solutions is quite simple. You need to edit your .vbproj or csproj file.
For vb.net you have to add the following line after the </ProjectGuid> tag:   <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>.

For C# you need to add the following line after the </ProjectGuid> tag:
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>.

More info about the ProjectTypeGuids can be found at stackoverflow.

3 thoughts on “Blend not showing WPF UserControls

  1. That is so true WPF UserControls As an author and business man, I like how you said “When you create a project (a WPF class library in my case) and you would like to edit the usercontrols in Blend, you can be in for a suprise”. I hope more people discover your blog because you really know what you’re talking about. Can’t wait to read more from you!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>