I have a DataTemplate in app.xaml that binds a view to a viewmodel.
Another pitfall is leaving out the {x:Type} from the DataType attribute.
{x:Type}
DataType
This builds, runs and fails silently: