public MainWindow2()
        {
            InitializeComponent();

            _model = new MainViewModel2(view1);

            DataContext = _model;
        }
Beispiel #2
0
        public MainView2()
        {
            InitializeComponent();
            ViewModel = new MainViewModel2();

            this.WhenActivated(d =>
            {
                this.BindCommand(ViewModel, vm => vm.ClickCommand, v => v.click1, Observable.Return("click1")).DisposeWith(d);
                //this.BindCommand(ViewModel, vm => vm.ClickCommand, v => v.click1).DisposeWith(d);
            });
        }
Beispiel #3
0
 public MainWindow2()
 {
     DataContext = new MainViewModel2();
     InitializeComponent();
 }