Gets a script object that provides access to the HTML window object, custom script functions, and global variables for the HTML page, if the XAML browser application (XBAP) is hosted in a frame.
Assembly: PresentationFramework (in PresentationFramework.dll)
Property ValueType: System::Object
A script object that provides access to the HTML window object, custom script functions, and global variables for the HTML page, if the XAML browser application (XBAP) is hosted in a frame; otherwise, nullptr.
With the returned object, you can access the properties, methods, and events of the HTML window object, call a script function directly, or access a global variable. The syntax to access these items uses the familiar dot notation.
For more information about the window object, see window object in the Dynamic HTML (DHTML) documentation.
The property returns nullptr if the frame is navigated to from a cross-domain location.
This feature can be turned off for Internet Explorer by setting the ScriptInteropDisallow registry value. For more information, see Security (WPF).
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.