2 out of 2 rated this helpful - Rate this topic

HtmlPage Class

Silverlight

Permits access to, and manipulation of, the browser's Document Object Model (DOM).

System.Object
  System.Windows.Browser.HtmlPage

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)
public static class HtmlPage

The HtmlPage type exposes the following members.

  Name Description
Public property Static member BrowserInformation Gets general information about the browser, such as name, version, and operating system.
Public property Static member Document Gets the browser's document object.
Public property Static member IsEnabled Gets a value that indicates whether the rest of the public surface area of the HTML Bridge feature is enabled.
Public property Static member IsPopupWindowAllowed Indicates whether pop-up windows are allowed.
Public property Static member Plugin Gets a reference to the Silverlight plug-in that is defined within an <object> or <embed> tag on the host HTML page.
Public property Static member Window Gets the browser's window object.
Top
  Name Description
Public method Static member PopupWindow Opens a pop-up window.
Public method Static member RegisterCreateableType Registers a managed type as available for creation from JavaScript code, through the Content.services.createObject and Content.services.createManagedObject helper methods.
Public method Static member RegisterScriptableObject Registers a managed object for scriptable access by JavaScript code.
Public method Static member UnregisterCreateableType Explicitly unregisters a managed type that was previously registered by using the RegisterCreateableType method.
Top

Two Silverlight classes can be used to access and manipulate the DOM: HtmlPage and HtmlDocument.

When the Silverlight plug-in's enableHtmlAccess property is set to false, any attempt to use the HtmlPage class fails with a NotSupportedException stating that the feature is disabled.

For information about the enableHtmlAccess property, see Security Settings in HTML Bridge.

Silverlight

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ