void MoveToPreviousStep() { if (CanMoveToPreviousStep) { ServiceLocator.Current.GetInstance <IEventAggregator>().GetEvent <WizardBackEvent>().Publish(EventArgs.Empty); CurrentLinkedListStep = CurrentLinkedListStep.Previous; _stepManager.ReworkListBasedOn(CurrentLinkedListStep.Value.ViewModel.OnNext()); } }
/// <summary> /// Note that currently, the step OnNext handler is only called when moving next; not when moving previous. /// </summary> void MoveToNextStep() { if (!CanMoveToNextStep) { return; } _stepManager.ReworkListBasedOn(CurrentLinkedListStep.Value.ViewModel.OnNext()); CurrentLinkedListStep = CurrentLinkedListStep.Next; //CurrentLinkedListStep.Value.ViewModel.BeforeShow(); CurrentLinkedListStep.Value.Visited = true; }