Example #1
0
        public App()
        {
            Locator.CurrentMutable.Register(() => new TestView(), typeof(IViewFor<TestViewModel>));

            var vm = new MainWindowModel();
            var view = new MainWindow {ViewModel = vm};
            view.Show();
        }
        public App()
        {
            RxApp.MutableResolver.Register(() => new TestView(), typeof(IViewFor<TestViewModel>));

            var vm = new MainWindowModel();
            var view = new MainWindow {ViewModel = vm};
            view.Show();
        }
Example #3
0
        public App()
        {
            RxApp.MutableResolver.Register(() => new CustomView(), typeof (IViewFor<CustomViewModel>));

            var vm = new MainWindowViewModel();
            RxApp.MutableResolver.RegisterConstant(vm, typeof (IScreen));
            var view = new MainWindow {ViewModel = vm};

            view.Show();
        }
 public void Run()
 {
     var viewModel = new MainWindowViewModel();
     var view = new MainWindow() { ViewModel = viewModel };
     view.Show();
 }