EN
此内容没有您的语言版本,但有英语版本。

getViewOpener method

Gets the window (app view) for the current app.

Syntax

object.getViewOpener()

Parameters

This method has no parameters.

Return value

Type: MSAppView

The window that opened the current view or null if no window opened the view.

Remarks

The getViewOpener method is supported only for Windows Store apps.

The return value represents the named windows that opened the current view, which may not necessarily be the same window reported by the window.parent or window.opener properties.

You can also use this method to determine if the current window is the main window.

See also

MSApp
createNewView

 

 

Build date: 12/16/2013

显示:
© 2014 Microsoft