Version

About WinZoomPanel

WinZoomPanel

The WinZoomPanel™ is a control container which allows the user to zoom into its contents and then to scroll through the zoomed contents. It offers all of the same features as the WinPanel, with the exception of the AutoScroll property, which is forced true because zooming necessitates scrolling to access the entire panel.

Zooming

The WinZoomPanel’s zooming capability is accessed through the ZoomProperties:

  • AllowPanningWithMouse allows the user to pan a zoomed in WinZoomPanel using Control + mouse drag. This allows the user to reach portions of the WinZoomPanel offscreen due to zooming.

  • AllowZoomingWithMouseWheel allows the user to zoom the WinZoomPanel using Control+mouse wheel. The WinZoomPanel will receive Control+mouse wheel messages to any of its child controls, giving the user a consistent zooming experience anywhere within the WinZoomPanel.

  • ZoomFactor sets the multiple by which the WinZoomPanel’s child controls will be magnified, with 1 as the designed size.

  • MaxZoomFactor sets the maximum multiple beyond which the WinZoomPanel will not continue to zoom in.

To implement zooming with our controls, two properties were added to ControlBase regarding their zoom:

  • SupportsZooming toggles whether or not the control will honor a WinZoomPanel’s zooming.

  • ZoomFactor gets how much the control is currently zoomed.