ViewerItemsControl styles

All changes of the ReportViewer appearance are based on the substitution of the ViewerItemsControl styles:


GridStyle

Report preview – GridView with thumbnails and page numbers (command of switching to this view  is disabled by default)

 

FlipStyle

Presentation of the report page (command of switching to this view is disabled)

 

StaticStyle

Presentation of intermediate states (long-term operations – initialization, rendering, loading)

 

ListStyle

Presentation of thumbnails as ListView, when the application in the Snapped state.

 

SemanticZoomStyle

SemanticZoom Control that looks like FlipStyle in ZoomedInView state and like GridStyle in ZoomedOutView state.

 

xlsxOptionsStyle

Presentation of the export options dialog

pdfOptionsStyle

Presentation of the export options dialog

 

ErrorStyle

Error presentation

 

WaitingStyle

Waiting

 

BookmarkStyle

Presentation of the bookmark tree

 

Controls, items, presenters

Special controls are used to create ViewerItemsControl in different styles. Below is the full list of used namespaces:

xmlns:customItems="using:PerpetuumSoft.WinRT.Viewer.Controls.CustomItems"
 xmlns:local="using:PerpetuumSoft.WinRT.Viewer.Extenders"
 xmlns:customControls="using:PerpetuumSoft.WinRT.Viewer.Controls"
 xmlns:win8controls="using:PerpetuumSoft.Controls"    xmlns:parameterControls="using:PerpetuumSoft.WinRT.Viewer.Controls.ReportParameterControls"
 xmlns:winrt="using:PerpetuumSoft.WinRT.Viewer"
 xmlns:localization="using:PerpetuumSoft.WinRT.Viewer.Controls.Localization"
 xmlns:utils="using:PerpetuumSoft.WinRT.Viewer.Utils"


customItems:ViewerGridItem

Is used as DataTemplate for GridViewItem in GridStyle

 

 

customItems:ViewerFlipItem

DataTemplate for FlipStyle’s FlipViewItem

 

customItems:ExcelOptionsPresenter

Base for xlsxOptionsStyle, needs ExcelOptionsViewModel as DataContext

 

customItems:PDFOptionsPresenter

Base for pdfOptionsStyle, needs PdfOptionsViewModel as DataContext

customItems:NoReportPresenter

Base for NoReportStyle

customItems:BookmarkItemPresenter

Getting back to the upper level:


Contains nested bookmarks:


Contains no nested bookmarks:


 

customControls:BookmarkTreePresenter

Displays current position in the bookmark tree

customItems:ErrorPresenter

Displays error message

 

 


 


 

Add Feedback