public Window1()
        {
            InitializeComponent();

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