IZoomableView.getCurrentItem method

Retrieves the current item of the zoomed in or zoomed out child of the custom control.


iZoomableView.getCurrentItem().done( /* Your success and error handlers */ );


This method has no parameters.

Return value

Type: Promise**

An object that represents the selected item.

This return value must be a Promise for the following:

  • An object with two properties: item and position.

  • item can be a number, a string, or an object with any number of properties.

  • position must be an object with four number properties: left, top, width and height.

    These values specify a rectangle that is typically the bounding box of the current item, though the details are up to the control. The units of the position must be in pixels. And the coordinates must be relative to the top-left of the control viewport (which should occupy the same area as the semantic zoom viewport).



Minimum WinJS version

WinJS 3.0



See also