Disable XAML UI designer

2019-02-11 13:10发布

3条回答
再贱就再见
2楼-- · 2019-02-11 13:22

For Visual Studio 2012 the Link "user1007074" provided (http://blog.spinthemoose.com/2013/03/24/disable-the-xaml-designer-in-visual-studio/) tells:

In the Tools –> Options menu, open the Text Editor node, then the XAML node, then select the Miscellaneous node; make sure that under the Default View heading there is a checkbox beside Always open documents in full XAML view.

also he suggest

Right-click on any .xaml file in your solution explorer and select Open With…

Choose editor and click "Set as Default". Many Thanks to David Alpert!

In Visual Studio 2015/2017:

  • In the Tools -> Otions menu, open the XAML Designer node, then uncheck "Enable XAML Designer"

VS 2017 Options Dialog to set Default document view to Source View or to disable XAML Designer

As Mark Bell pointed out, it can be enough to set the Default document view to Source View, and leave XAML Designer enabled.

查看更多
贪生不怕死
3楼-- · 2019-02-11 13:25

In Visual Studio 2015 you can completely turn off the XAML designer in:

Tools->Options->XAML Designer\Enable XAML Designer

XAML Designer toggle location in Visual Studio 2015

查看更多
放荡不羁爱自由
4楼-- · 2019-02-11 13:40

This applies for VS2012, maybe also other versions:

In VS Installation rename XDesProc.exe to XDesProc.exe.bak

For me it was: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\XDesProc.exe

This way it has the best performance gain. The process won't start and VisualStudio will show an undisturbing exception window instead of the designer.

查看更多
登录 后发表回答