FlexViewerPane > Zooming the Report Preview |
C1FlexViewerPane provides the ZoomFactor property to set the zoom level of the report displayed in the FlexViewerPane control. You can specify a float value for ZoomFactor property to set the zoom level of the report. You can also set the MinZoomFactor and MaxZoomFactor to limit the zoom level of the displayed report.
In addition, C1FlexViewerPane allows you to manage the zoom behavior of the previewed report in the FlexViewrPane control. To specify the preview zoom mode, you can use the ZoomMode property. The ZoomMode property accepts the following values from the FlexViewerZoomMode enum, which describes the zoom modes supported in the FlexViewerPane control:
The value of ZoomMode property can be set in the XAML as well as in code. To set the zoom mode, you can add the following code inside the <c1:C1FlexViewerPane></c1:C1FlexViewerPane> tags in XAML:
XAML |
Copy Code
|
---|---|
<c1:C1FlexViewerPane x:Name="ViewerPane" Grid.Row="1" ZoomMode="WholePage"/> |
To set the preview zoom mode in code, you can use the ZoomMode property and FlexViewerZoomMode enum. The following code illustrates the use of ZoomMode property and FlexViewerZoomMode enum. This example uses the sample created in FlexReport Quick Start.
ViewerPane.ZoomMode = FlexViewerZoomMode.WholePage
ViewerPane.ZoomMode = FlexViewerZoomMode.WholePage;