There seem to be two main ways to define DataContext in WPF:
App.xaml.cs (taken from the WPF MVVM Too
Having it in codebehind makes it easy to inject the datacontext using unity.