IZoomableView.beginZoom method

Applies to Windows and Windows Phone

Initiates semantic zoom on the custom control.

Syntax


iZoomableView.beginZoom();

Parameters

This method has no parameters.

Return value

On Windows the method does not return a value.

On Windows Phone 8.1, this method returns a Promise object. The control implementing the zoomable view interface is responsible for animating the incoming/outgoing content. The Promise object returned by beginZoom is the promise for that animation, and completes when the animation finishes.

Remarks

Zooms in or out depending on the value of zoomedOut (defined by configureForZoom).

When calling this method, ensure that:

  • Content within the control is not cropped.
  • The pages specified by the value of prefetchedPages (defined by configureForZoom) are visible.
  • Unnecessary UI controls (such as scroll bars) are hidden.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

See also

IZoomableView

 

 

Show:
© 2014 Microsoft