Compartir a través de


WinJS.UI.ViewBox constructor

Initializes a new instance of the ViewBox control.

Syntax

var viewBox = new WinJS.UI.ViewBox(element, options);

Parameters

  • element
    Type: DOMElement

    The DOM element that functions as the scaling box. This element fills 100% of the width and height allotted to it.

  • options
    Type: object

    The set of options to be applied initially to the ViewBox control. There are currently no options on this control, and any options included in this parameter are ignored.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

ViewBox