XAML Intellisense in Silverlight (1.1 Alpha plus VS2008 Beta 2)
|
I'm using my blog in lieu of my memory because I always have to think about this problem for a minute or two before I remember. In Beta2 (which means I have no clue if this will change going forward) of Visual Studio 2008, when I create a new Silverlight Project (defaults at Silverlight 1.1 with managed code), I don't have any intellisense help when trying to work directly in the XAML. One of the installation steps is to be sure that the silverlight.xsd (the schema file for Silverlight's XAML) is installed in the "C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas" folder of your development machine. That's a one time step, but I always find myself checking for that before remembering the other half of the fix. When you are in the XAML code window, one of the properties for the file in the Property Windows is "Schemas". If you click on the ellispses you will open up the schema selector. With 3 schema files checked for use by default for the XAML file.
Note that I fully suspect that this is a temporary hack, so look for an update of this when VS2008 is released. I found that if I change the setting for the silverlight.xsd to Automatic (and unfortunatley "Do Not Use" also seems to work)...
... that intellisense comes back
|







Comments (2)
Hi Julie,
I am not sure if this is the same bug, but VS 2008 beta 2 has a general XML bug regarding Intellisense (XAML being XML, I suspect it might be the same bug).
I am told (by the VB XML MS guy) that this is fixed in the RTM bits.
bill
PS A generic workaround is to load an XML file BEFORE opening your project. This ensures that the XML editor code is cached and should solve the problem.
Posted by William Burrows | October 28, 2007 8:25 PM
I just installed the VS 2008 RTM and had to do this to get XAML intellisense working so I guess they didn't fix it...
Posted by Cameron | December 3, 2007 4:15 PM