/// <summary> /// Loads all pages to main container /// </summary> public void LoadPages() { try { // Adds view model site's to each container GeneratePatchViewModels.Add(new GeneratePatchViewModel()); GeneratePatchViewModels.Add(new GeneratePatchFolderViewModel()); LayPatchViewModels.Add(new LayPatchViewModel()); LayPatchViewModels.Add(new LayPatchFolderViewModel()); RollbackViewModels.Add(new RollbackChangesViewModel()); RollbackViewModels.Add(new RollbackChangesFolderViewModel()); HelpViewModels.Add(new HelpViewModel()); PageViewModels.AddRange(_generatePatchViewModels); PageViewModels.AddRange(_layPatchViewModels); PageViewModels.AddRange(_rollbackViewModels); PageViewModels.AddRange(_helpViewModels); } catch (ArgumentNullException ex) { MessageBox.Show(ex.Message); } finally { // Set starting page CurrentPageViewModel = GeneratePatchViewModels[0]; } }
public Helpe() { helpViewModels = new HelpViewModels() { Navigation = this.Navigation }; InitializeComponent(); BindingContext = helpViewModels; }