public MainWindow() { InitializeComponent(); TestUserControlViewModel vm = new TestUserControlViewModel(); this.DataContext = vm; }