Export (0) Print
Expand All

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.

  NameDescription
Public propertyStatic memberBrowserInformationGets general information about the browser, such as name, version, and operating system.
Public propertyStatic memberDocumentGets the browser's document object.
Public propertyStatic memberIsEnabledGets a value that indicates whether the rest of the public surface area of the HTML Bridge feature is enabled.
Public propertyStatic memberIsPopupWindowAllowedIndicates whether pop-up windows are allowed.
Public propertyStatic memberPluginGets a reference to the Silverlight plug-in that is defined within an <object> or <embed> tag on the host HTML page.
Public propertyStatic memberWindowGets the browser's window object.
Top

  NameDescription
Public methodStatic memberPopupWindowOpens a pop-up window.
Public methodStatic memberRegisterCreateableTypeRegisters a managed type as available for creation from JavaScript code, through the Content.services.createObject and Content.services.createManagedObject helper methods.
Public methodStatic memberRegisterScriptableObjectRegisters a managed object for scriptable access by JavaScript code.
Public methodStatic memberUnregisterCreateableTypeExplicitly 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.

Community Additions

ADD
Show:
© 2014 Microsoft