.net – ControlTemplate edit inside Resource hangs visual studio 2008

netwpf

I am using Visual Studio 2008 SP1 in XP

The hang up occurs when i try to edit a controltemplate that is defined in a resource.
(all my resource files are merged through application.xaml)

Googling this issue i found out that it is a known bug to microsoft, but i cant seem to find a hotfix or a good enough solution in order to do my work.

One way to do my work is to temporary exclude the resource file from the project, alter the controltemplate and then re-include and build project.
But still, even this doesnt seem to work every time and i get about 1 hang up every 4-5 tries..

One other way is to copy the controltemplate inside a window.resources, make all the modifications and then copy it back to the resources file, But this is a pain in the ass to implement.

Anybody found a better way? or a solution to this problem?

Best Answer

It usually works fine for me if I just don't have any other XAML windows open. I think it's the designer in the window trying to use the resource that actually causes the crash.