コード例 #1
0
        private void OnStartUp(object sender, StartupEventArgs e)
        {
            Views.MainWindow         view          = new Views.MainWindow();
            ViewModels.MainViewModel mainViewModel = new ViewModels.MainViewModel();
            view.DataContext = mainViewModel;

            view.Show();
        }
コード例 #2
0
        private void OnStartUp(object sender, StartupEventArgs e)
        {
            Views.MainWindow view = new Views.MainWindow();
            ViewModels.MainViewModel mainViewModel = new ViewModels.MainViewModel();
            view.DataContext = mainViewModel;

            view.Show(); 
        }