![]()
Everything you see on this panel (see samples on the left) is custom-painted by the HTML Renderer, including tables, images, links and videos.
This project allows you to have the rich format power of HTML on your desktop applications without WebBrowser control or MSHTML.
The library is 100% managed code without any external dependencies, the only requirement is .NET Framework 4.6.2 or higher, including support for Client Profile.Text selection (copy to clipboard)
The rendered html has full support for text selection including drag-and-drop and copy to clipboard of rich html and plain text to handle paste operation to editor that support rich or/and plain text.
Additionally there is a context-menu with select all, copy text, copy image, save image, open link, copy link url, open video, copy video url.Cascading Style Sheets (CSS) support
The core layout engine of the renderer was builded according to CSS Level 2 specification, so you can use Cascading Style Sheets to format your html documents.
Additionally there are a couple extensions: Gradients on backgrounds and rounded corners.WinForms controls
It comes with handy WinForms controls (see Sample Form):
HtmlPanel- The control where you are reading this, panel with scrollbars.HtmlLabel- Same as html panel but without scrollbars and optional auto size.HtmlToolTip- For ToolTip with rich html.Benefits
- 100% managed code and no external dependencies.
- Handles "real world" malformed HTML, it doesn't have to be XHTML.
- Lightweight (~300K).
- High performance and low memory footprint.
- Extendable and configurable.
Limitations
- All HTML end tags marked as optional should be there. No problem with tags marked as forbidden.
On the roadmap
Of course it's not quite finished yet. Here are some of the important things to do.
- Better performance
- Support of position CSS property
- Support of height and min-height CSS property
- Better tables support, especially layouts
- Support image align
- Handle :hover selector
- Selection by shift+arrows
- Better HTML tag parsing (optional closing tags)
- More styles support
Vision
- Most complete static HTML Renderer (no java script).
- Commercial web browser performance level.
2012 - Arthur Teplitzki
https://TheArtOfDev.com2009 - Jose Manuel Menendez Poo