public StartUpView() { try { InitializeComponent(); _viewModel = _viewModelLocator.StartUpViewModel; DataContext = _viewModel; _viewModel.ErrorNotice += OnErrorNotice; _viewModel.LogInNotice += OnLogInNotice; _viewModel.MainMenuNotice += OnMainMenuNotice; } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButton.OK); } }
public StartUpWindow() { InitializeComponent(); StartUpViewModel = new StartUpViewModel(); DataContext = StartUpViewModel; }
public StartUpPage() { InitializeComponent(); BindingContext = new StartUpViewModel(); }
public NavigateCommand(StartUpViewModel wvm) { mViewModel = wvm; }