HtmlPage.Window Property


Gets the browser's window object.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

public static HtmlWindow Window { get; }

Property Value

Type: System.Windows.Browser.HtmlWindow
A reference to the browser's window object.

The return value references a browser's window object if the control is running in a page, or an IFRAME's window object if the control is running in the context of an IFRAME.

See the window object in the dynamic HTML (DHTML) documentation for information about the JavaScript window object.


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions