Udostępnij za pośrednictwem


HtmlPage.Window Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the browser's window object.

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

Syntax

'Declaration
Public Shared ReadOnly Property Window As HtmlWindow
public static HtmlWindow Window { get; }

Property Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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