Beispiel #1
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     var vm = new ValidatingViewModel(new DataErrorInfoProvider());
     var view = new ValidatingView(vm);
     view.Show();
 }
 public ValidatingView(ValidatingViewModel viewModel)
     : this()
 {
     DataContext = viewModel;
 }