How to disable Design mode in Visual Studio

How can I use only XAML-Code-View without Visual Studio load Design mode?

I need to disable designMode every time, I can not find this in my settings ...

alt text http://www.biggle.de/allView2.jpg

+59
visual-studio xaml
Jul 31 '09 at 10:31
source share
3 answers

In vs2015 go:

Tools> Options> Xaml Designer

Select View Source for View Default Document

or you can completely disable it by unchecking the Enable XAML Designer box

In vs2010 go to:

Tools> Options> Text editor> XAML> Miscellaneous

In the "Default view" section

check Always open documents in full XAML format

+108
Aug 20 '10 at 17:46
source share

Right-click the .xml file in "Source Explorer" , select "Open with and select " Source Code (Text) Editor by default.

+20
Sep 28 '12 at 7:30
source share

In VS 2015, you can also achieve this by clicking on the collapse icon and then clicking on the XAML icon, it will first display the constructor, only then it will show only the xaml code and save the structure to collapse just in case it is needed.

Click collapse icon (double arrows) Click collapse icon

Click the XAML icon (XAML with a code sign) Click the XAML Icon

Here's how it should look after clicking the XAML icon

Click the xaml icon

Finally, you can Save window layout in the window menu and use the layout the next time you open your project.

0
Jun 29 '16 at 0:44
source share



All Articles