public ReminderWindowViewModel(ViewModel viewModel, RadScheduleView scheduleView) { this.MainViewModel = viewModel; this.MainViewModel.PropertyChanged += MainViewModel_PropertyChanged; this.DismissCommand = new DelegateCommand(this.DismissCommandExecuted, this.DismissCommandCanExecute); this.SnoozeCommand = new DelegateCommand(this.SnoozeCommandExecuted, this.SnoozeCommandCanExecute); this.ScheduleView = scheduleView; this.EditAppointmentCommand = new DelegateCommand(this.EditAppointmentCommandExecuted, this.EditAppointmentCommandCanExecute); }
public Example() { viewModel = new ViewModel(this.scheduleView); this.DataContext = viewModel; InitializeComponent(); }
public Example() { InitializeComponent(); viewModel = new ViewModel(this.scheduleView); this.DataContext = viewModel; }