public override void SetState(ConfirmVoteState state) { _logger.Trace(LogStatements.ViewModelReceivedStateLog(state.GetLogString())); base.SetState(state); RaisePropertyChanged(() => Title); RaisePropertyChanged(() => Description); RaisePropertyChanged(() => Choice); }
protected override void OnNavigatedTo(NavigationEventArgs e) { _logger.Trace(LogStatements.NavigatedLog(LogStatements.NavigatedToAction, "SummaryPage")); var viewModel = ServiceLocator.Current.GetInstance <SummaryPageViewModel>(); DataContext = viewModel; viewModel.SetState((SummaryState)e.Parameter); base.OnNavigatedTo(e); }
protected override void OnNavigatedFrom(NavigationEventArgs e) { _logger.Trace(LogStatements.NavigatedLog(LogStatements.NavigatedFromAction, "SummaryPage")); base.OnNavigatedFrom(e); }
protected override void OnNavigatedTo(NavigationEventArgs e) { _logger.Trace(LogStatements.NavigatedLog(LogStatements.NavigatedToAction, "MainPage")); base.OnNavigatedTo(e); }
public virtual void SetState(T state) { _logger?.Trace(LogStatements.ViewModelReceivedStateLog(state.GetLogString())); _state = state; }