IZoomableView.configureForZoom method

Initializes the semantic zoom state for the custom control.

Syntax

iZoomableView.configureForZoom(isZoomedOut, isCurrentView, triggerZoom, prefetchedPages);

Parameters

  • isZoomedOut
    Type: Variant

    True if this is the zoomed out view; otherwise false.

  • isCurrentView
    Type: Variant

    True if this is the current view; otherwise false.

  • triggerZoom
    Type: Variant

    The function that manages semantic zoom behavior. Triggers a zoom in or zoom out if the control is the visible control.

  • prefetchedPages
    Type: Variant

    The number of pages of content to pre-fetch for zooming.

    This value is dependent on the size of the semantic zoom container. More content can be displayed based on the zoom factor and the size of the container.

Return value

This method does not return a value.

Remarks

This method is called on both child elements of the semantic zoom container.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

IZoomableView