Skip to main content

HtmlPanel

WATCH & LEARN0:47 · Animated tutorial
7 scenesPlay, pause, or scrub at your own pace

The HtmlPanel control can be used to embed full HTML documents within a Wisej.NET application.

info

For a complete list of properties, methods, and events, see the API documentation.

Features​

Custom HTML​

Set Html to an HTML string, or use HtmlSource to load the content from an HTML file.

//For the Html property, put the entire HTML code as a string
htmlPanel1.Html = "<b>Example Text Here</b>";

//For the HtmlSource property, provide a string contining the path to a HTML file
htmlPanel1.HtmlSource = "MyHtmlFile.html";

Clicks inside the HtmlPanel can be handled with the ElementClick event.

danger

It's not recommended to use HTML containing an iframe within the HtmlPanel. The HtmlPanel cannot handle clicks on anything inside the iframe. If your HTML contains an iframe, use the IFramePanel instead.

HtmlPanel displaying embedded HTML content

Advanced​

JavaScript Widget​

ItemDescription
Class name"wisej.web.ScrollableHtmlPanel"
Theme appearance"widget", see Themes.
Child components"pane" is the container for the HTML content. See JavaScript.
Source Codehttps://github.com/iceteagroup/wisej-js