ViewBox.ViewBox method

2 out of 4 rated this helpful - Rate this topic

Initializes a new instance of the ViewBox control.

Syntax


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

Return value

This method does not return a value.

Examples

The following code shows how to construct a ViewBox with options.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.UI

Library

Ui.js

See also

ViewBox

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.