views:

249

answers:

3

Is there a way to disable the WPF designer (the preview pane, I only need the XAML-pane with intellisense) in VS 2010?

Please note that when hiding the Design view of the WPF designer, it will still render the form/control ... I don't consider that disabled.

I only see the "Open With" + "XML Editor"-solution, which doesn't give nearly the fidelity the default XAML designer has.

+4  A: 

I don't know about 2010, but in 2008 you can Tools->Options->Text Editor->XAML->MIscellaneous->"Always open documents in full XAML view"

Maybe this helps.

Nils
+1, nice hint, but same behavior as hiding the Designer Pane.
+2  A: 

I haven't tried this in Visual Studio 2010, but in 2008 you can have it treat XAML files as XML files (and thus use the standard XML text editor, rather than the designer's XML editor). You can do this by right clicking an XAML file, select "Open With", pick XML file from the list, and then set that as the default.

At least in 2008, you still got pretty good intellisense, but none of the overhead of the XAML designer.

Andy
Good hint, I mentioned it in the question, but for WPF you lose _a lot_ of fidelity. The intellisense for WPF-XAML is pretty darn good (it's amazing) - for example, it also includes recognition of CLR types in XML. I suppose that's what makes it so slow:S
Don't set it to XML, set it to "Source Code (Text) Editor". You should get the better intellisense experience that way.
Noah Richards
A: 

WOOOOt that helped so much!!!

antig