How to change the default XAML document view in Visual Studio 2015?


Not many of us wants to work in the designer view of Visual Studio while working with the XAML files. This could be due to no requirements of changing the UI layout rather than few data bindings. By default, Visual Studio loads the XAML designer view.

 

In this post we are going to learn how to disable the designer view and/or change the way it loads the default document view.

 

How to change the default XAML document view in Visual Studio 2015 (www.kunal-chowdhury.com)

 

By default, Visual Studio loads the XAML designer view in a way that you can see both the designer and the code in split fashion. Loading the designer view sometimes takes time and thus most of the developers working in XAML wants to turn it OFF.

 

In Visual Studio 2015, you can easily disable it and/or change the way it loads. To do so, open the Visual Studio editor. Go to Tools –> Options and navigate to the “XAML Designer” page as shown in the below screenshot. To disable loading the designer view, uncheck the item labeled “Enable XAML Designer (requires restart of Visual Studio)”. As stated, this changes require you to restart your IDE.

 

How to enable or disable the XAML designer view in Visual Studio 2015 (www.kunal-chowdhury.com)

 

If you don’t want to disable it but want to change the way it loads, you can easily do so from the same settings page. As shown below, find out the dropdown that says “Default document view”. By default, it is set to “Split View”. In this view, you will have both the designer view and source view.

 


Don’t miss :   Visual Studio 2015 Tips & Tricks


 

Select either “Design View” or “Source View” from the list. Design view will load the XAML page in designer and Source view will load the XAML code page. If you feel that the designer is slow in loading and/or you don’t need the design view to load by default, chose “Source View” from the available list.

 

How to change the default document view of XAML files in Visual Studio 2015 (www.kunal-chowdhury.com)

 

If you are using “Split View”, you can ask the IDE to change the splitter orientation to either horizontal or vertical. Refer the below screenshot for details:

 

How to change the split orientation of XAML files in Visual Studio 2015 (www.kunal-chowdhury.com)

 

I hope that the post was helpful in order to enable/disable the XAML designer view and/or the way it loads by default. Don’t forget to read out my other blog posts on Visual Studio Tips & Tricks.

 

 


If you have come this far, it means that you liked what you are reading. Why not reach little more and connect with me directly on Twitter , Facebook , Google+ and LinkedIn . I would love to hear your thoughts and opinions on my articles directly. Also, don't forget to share your views and/or feedback in the comment section below.

0 comments


 
© 2008-2016 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top