public void MoveToSelectedPage(IProgressHeaderItem item) { SelectedPageChanged?.Invoke(this, new SelectedPageEventArgs { ProgressHeaderItem = item, PagePosition = GetCurrentPagePosition(item) }); }
public void ActivateOrOpenDocument(DocumentViewModel documentViewModel) { if (!_openDocumentTabs.TryGetValue(documentViewModel.DocumentId, out PageViewModel pageViewModel)) { pageViewModel = new DocumentPageViewModel(ServiceProvider, documentViewModel); _openDocumentTabs.Add(documentViewModel.DocumentId, pageViewModel); Pages.Add(pageViewModel); } SelectedPageChanged?.Invoke(this, pageViewModel); }
private void pageContainer_SelectedPageChanged(object sender, EventArgs e) { if (pageContainer.SelectedPage != null) { HeaderText = pageContainer.SelectedPage.Text; } if ((e as AeroWizard.SelectedPageEventArgs) != null) { SelectedPageChanged.Invoke(this, new SelectedPageEventArgs { IsPrevious = true }); } else { OnSelectedPageChanged(); } }
/// <summary> /// Returns to the previous page. /// </summary> public virtual void PreviousPage() { if (this.IsDesignMode()) { var idx = SelectedPageIndex; if (idx > 0) { SelectedPage = Pages[idx - 1]; } return; } //if (SelectedPage.RollbackPage()) // SelectedPage = pageHistory.Pop(); pageHistory.Pop(); SelectedPageChanged.Invoke(this, new SelectedPageEventArgs { IsPrevious = true }); UpdateUIDependencies(); }
/// <summary> /// Raises the <see cref="WizardControl.SelectedPageChanged"/> event. /// </summary> protected void OnSelectedPageChanged() { SelectedPageChanged?.Invoke(this, EventArgs.Empty); }
private void pdf_renderer_control_SelectedPageChanged(int page) { SelectedPageChanged?.Invoke(page); }
private void OnSelectedPageChanged() { SelectedPageChanged?.Invoke(this, SelectedPage); }