public TimerSettingView(CountdownTimerViewModel viewModel) { InitializeComponent(); settingViewModel = viewModel; DataContext = settingViewModel; }
public MainView() { InitializeComponent(); timerViewModel = new CountdownTimerViewModel(); timerView = new CountdownTimerView(timerViewModel); settingView = new TimerSettingView(timerViewModel); settingView.NewTimeSet += SettingView_NewTimeSet; settingView.Canceled += SettingView_Canceled; contentHolder.Content = timerView; }
public CountdownTimerView(CountdownTimerViewModel viewModel) { this.InitializeComponent(); DataContext = viewModel; }