コード例 #1
0
        public TimerSettingView(CountdownTimerViewModel viewModel)
        {
            InitializeComponent();

            settingViewModel = viewModel;
            DataContext      = settingViewModel;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public CountdownTimerView(CountdownTimerViewModel viewModel)
 {
     this.InitializeComponent();
     DataContext = viewModel;
 }