private void ExecutePreviousPageCommand() { IWizardPageVM previousPage = null; var currentIndex = WizardPages.IndexOf(CurrentPage); var previousPageIndex = currentIndex - 1; if (previousPageIndex >= 0 && previousPageIndex < WizardPages.Count) { previousPage = WizardPages[previousPageIndex]; } CurrentPage = previousPage; UpdatePageCommand(); }