Introduction
In this article, we are going to use XAML Previewer in Xamarin.Forms. Xamarin.Forms is used to make cross-platform applications by using C# as a back-end language and XAML as front-end. Let’s discuss XAML Previewer.
Targeted Audience
All People with knowledge of Xamarin.Forms.
If you are not familiar with Xamarin.Forms, click here to learn how to develop you first cross-platform application.
Technical Requirements
- Windows 10 or Mac OS
- Xamarin Studio or Visual Studio 2015, 2017 with Xamain installed
- Developer mode should be enabled on your OS
Installation
Download Visual Studio Installer from here.
You have to install Visual Studio 2017 with Xamarin workload.
Installing Xamarin.Forms Previewer
You don’t have to do any work for installation of XAML Previewer. If you have Xamarin installed in your Visual Studio, then XAML Previewer is already installed on your machine; you just have to run it. Just follow the steps to open the Previewer.
To launch the Previewer in Visual Studio, select View -> Other Windows -> Xamarin.Forms Previewer, or search for “previewer” in the search bar. And, the XAML Previewer will be displayed on your screen.

After opening the Previewer, you will see the preview of your current XAML page. Just like this.

Code of this XAML page is also given.
Using the Previewer
The Previewer works on:
- ContentPage
- ContentView
- ViewCell
Just create a new Xamarin.Forms application or open your existing application. Then, open any View created by XAML and open the XAML Previewer to see you XAML working without starting an application. You can make any changes on your View page and these will be reflecting on XAML Previewer.
Advantages of XAML Previewer
- You don’t need to run the complete application to view your pages.
- All changes you do in your XAML page are reflected and shown in the Previewer.
- Already installed with Xamarin.
- No extra installation needed.
- Easy way to see your XAML working.




Join the conversation! Your thoughts help the community grow.