DocumentViewerBase.SelectedPageChanged Event
Occurs when the selected page within the print preview is changed.
Namespace: DevExpress.DocumentView.Controls
Assembly: DevExpress.Utils.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
[DXCategory("Property Changed")]
public event EventHandler SelectedPageChanged
#Event Data
The SelectedPageChanged event's data class is EventArgs.
#Remarks
The following methods invoke this event:
- DocumentViewerBase.SelectFirstPage
- DocumentViewerBase.SelectPrevPage
- DocumentViewerBase.SelectNextPage
- DocumentViewerBase.SelectLastPage
Generally, this event occurs when a user navigates through the pages of a multipage report. If there was no selected page within the report, using the above methods or clicking any page will raise a SelectedPageChanged event.
This is the only way to raise this event in a single page report. Navigation buttons on the main menu of a Print Preview duplicate the above methods and therefore can also raise the SelectedPageChanged event.