Follow us on X (Twitter)  Like us on Facebook  Connect with us on LinkedIn  Subscribe to our YouTube Channel  Subscribe to our WhatsApp Group

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.

 

 

Have a question? Or, a comment? Let's Discuss it below...

Thank you for visiting our website!

We value your engagement and would love to hear your thoughts. Don't forget to leave a comment below to share your feedback, opinions, or questions.

We believe in fostering an interactive and inclusive community, and your comments play a crucial role in creating that environment.