Skip to main content
IZoomableView.getCurrentItem method

Applies to Windows and Windows Phone

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

Syntax


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

Parameters

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).

Remarks

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