Monthly Archives: April 2016

Getting Xamarin Xaml Intellisense when the binding context is set in code

I’m working on an app where I navigate from one page to another, passing data by setting the new page’s binding context:

Navigation.PushAsync(new QuickNotePage() { BindingContext = quickNote});

When designing the Xaml for QuickNotePage I was pained to see that Intellisense wasn’t working, because I wasn’t setting the bindingContext for the page in Xaml.

A quick search led me to this page which pre-dates the current version of Xamarin, but nevertheless reminded me of the old design-time namespaces that were auto-generated when I worked on WPF and Silverlight.

This is the Xaml I’m using now to get Intellisense auto-completion and the ability to navigate to properties:


<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns=""
    <Label Text="{Binding Title}"/>


<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns=""
             d:DataContext="{d:DesignInstance quickNoteViewModels:QuickNoteViewModel}">
    <Label Text="{Binding Title}"/>

Where QuickNoteViewModel is the ViewModel class, and instance of which I set above when instantiating the page.

Visual Studio missing “Forms Xaml Page” from “Add|New Item” menu using Xamarin

Not sure why this is happening, but its been happening on all my installations of Xamarin with Visual Studio 2015.

All the tutorials and web pages talk about using Project|Add New Item and adding a new "Forms Xaml Page". But whenever I install Xamarin and Visual Studio 2015, I just get the "Forms ContentPage" and "Forms ContentView" which just generate a C# file, no Xaml.

To fix this, I copied from

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin\\T\IT\Cross-Platform\Code


C:\Users\your name here\Documents\Visual Studio 2015\Templates\ItemTemplates\Visual C#

Finally, it is there:
Screenshot 2016-04-08 11.10.19