Visual Studio Suckage
Jul. 30th, 2008 10:10 amA couple notes to WPF developers who use VS2008:
If you install the Windows SDK, it is likely that your XAML Intellisense will stop working. To fix it, you have to use regedit to change some special registry key to point to some special DLL. There's a webpage about this somewhere, google can find it for you.
Also, somewhere along the line I think the WPF Window VS2008 Template got changed. Instead of apps coming up with a Window that has SizeToContent set to WidthAndHeight, it now comes up set to Manual. This, of course, is not reflected in the designer, resulting in much time spent trying to figure out why my app comes up at some random size instead of the size it appears in the designer and should be based on how WPF sizes things. To change the template, rather than changing anything in the IDE or in preferences, you have to edit C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\WPF\1033\WPFWindow.zip. Of course that is the intuitively obvious way to change such a thing. *rolls eyes*
If you install the Windows SDK, it is likely that your XAML Intellisense will stop working. To fix it, you have to use regedit to change some special registry key to point to some special DLL. There's a webpage about this somewhere, google can find it for you.
Also, somewhere along the line I think the WPF Window VS2008 Template got changed. Instead of apps coming up with a Window that has SizeToContent set to WidthAndHeight, it now comes up set to Manual. This, of course, is not reflected in the designer, resulting in much time spent trying to figure out why my app comes up at some random size instead of the size it appears in the designer and should be based on how WPF sizes things. To change the template, rather than changing anything in the IDE or in preferences, you have to edit C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\WPF\1033\WPFWindow.zip. Of course that is the intuitively obvious way to change such a thing. *rolls eyes*