public RecipeEntryWindow() { InitializeComponent(); mvvmObject = new RecipeEntryMVVM(); this.DataContext = mvvmObject; }
private void Window_Loaded(object sender, RoutedEventArgs e) { mvvmObject = (RecipeEntryMVVM)this.DataContext; }