Feed on
Posts
Comments

You’re excited about WPFe and install the SDK.  You start working on your first application in Visual Studio.

“Hey, where’s the intellisense?” 


A fresh install of the WPF/E(Sliverlight) SDK doesn’t support intellisense. Don’t fret, I’ve found the solution.

 

The Fix

Copy the WPFe schema file to your Visual Studio folder.  The following assumes you installed the apps in the default location.

C:\Program Files\Microsoft SDKs\WPFE\Help\XSD\wpfe.xsd
   to   
C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas

 

Be sure and add the following xmlns tag inside your root element.

<Canvas xmlns=http://schemas.microsoft.com/client/2007
     xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml />

Edit - thanks to Sam Barber for the reminder

  -Walt

3 Responses to “WPFe - Fix - Missing Intellisense in Visual Studio”

  1. Sam Barber says:

    I’d just assumed intellisense wasn’t supported yet, but this is awesome. As an added tip, make sure you add namespaces in the top Canvas if you aren’t getting the intellisense:
    xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

  2. Walt Ritscher says:

    Thanks Sam, I forgot to mention the namespace.

  3. John says:

    I cannot get the Intellisense to work with VS 2008? if I use the schema listed above I just get an error saying that it is not declared…..

    any thoughts?

Leave a Reply