public Window1() { InitializeComponent(); window1ViewModel = new Window1ViewModel(); this.DataContext = window1ViewModel; this.Loaded += new RoutedEventHandler(Window1_Loaded); }
public Window1() { InitializeComponent(); _viewModel = (Window1ViewModel)this.DataContext; // @#$% (see XAML) }
public Window1() { InitializeComponent(); window1ViewModel = new Window1ViewModel(); this.DataContext = window1ViewModel; }