The View (code behind)

This is the file you want to keep as light as possible. Just create the ViewModel and assign it to the BindingContext. You should have some sort of dependency injection to abstract the creation of the ViewModel away. But this is just a simple sample.