WPF HTML Editor Control

A native-XAML HTML editor for WPF apps - one NuGet install, clean XHTML, Word paste that survives, source code if you need it. In production since 2015, ready for .NET 11.

Clone from GitHub

The same samples, nothing to unblock

Download samples

The same samples, zipped

Book a live demo

Free, 1:1 with a domain expert

The download and the GitHub repository hold exactly the same samples. Take the zip if you are behind a firewall that blocks GitHub, otherwise clone it: a clone carries no mark of the web, so there is nothing to unblock before Visual Studio will build it.

Install via NuGet
PM> Install-Package SpiceLogic.HtmlEditor.WPF
Works with
.NET Framework: 4.5, 4.7.2, 4.8 .NET: 5, 6, 7, 8, 9, 10, 11 Visual Studio: 2019, 2022, 2026
01

Ship a Full HTML Editor Without Building One

Drop WpfHtmlEditor into a XAML window and your app gains a complete HTML composition surface: toolbar, WYSIWYG editing, formatted source view, preview mode, spell checking, tables, images, and dialogs - the plumbing a team otherwise spends weeks building before the first real feature ships.

It is built for WPF - XAML toolbar, vector icons, ResourceDictionary theming, bindable HTML properties - not a WinForms editor wrapped in WindowsFormsHost. SpiceLogic has shipped HTML editing controls since 2007, and the current line is rebuilt for modern .NET through .NET 11.

SpiceLogic WPF HTML Editor with its complete toolbars surrounding a clearly labeled sample HTML document and quarterly-performance infographic.
02

Design. Source. Preview. One HTML editor.

Compose visually, refine the HTML, then preview the result. Switch between three views of your document without leaving the editor.

The formatted source view brings your markup into focus with syntax highlighting, line numbers, indentation and wrapped lines. Review the rendered document in read-only preview before saving.

SpiceLogic WPF HTML Editor showing indented, syntax-highlighted HTML, line numbers and all three mode controls, with source mode selected.
03

Official MCP Server for AI Coding Assistants

SpiceLogic runs an official Model Context Protocol (MCP) server for this control, and it is not tied to one vendor's assistant. Your assistant gets seven product-aware tools: search_docs and get_doc_page for guides, search_api and get_api for exact types and members, plus get_quickstart, get_sample, and get_licensing for setup, code, and licensing. It is a remote HTTPS endpoint, so there is nothing to install on a developer machine and no key to manage.

Read the walkthrough
Claude Code beside a seven-tool MCP map for the WPF HTML Editor: search documentation, read a guide, find API members, read API reference, set up, get samples, and configure licensing.

More features

04 Binds Like Any Other WPF Control Your ViewModels should not care that HTML is involved.

Your ViewModels should not care that HTML is involved. BodyHtml, DocumentHtml, and DocumentTitle are real dependency properties that bind two-way by default: BodyHtml="{Binding Draft.Body}" loads the document from your ViewModel and flows edits back as the user types, with UpdateSourceTrigger under your control. The editor drops into an MVVM codebase the way a TextBox does.

XAML two-way binding line for BodyHtml shown large above the running WPF app it drives
05 Match Your App's Theme with One ResourceDictionary The editor uses standard WPF theming: swap a ResourceDictionary and it follows your light mode, dark mode, or corporate design system - no…

The editor uses standard WPF theming: swap a ResourceDictionary and it follows your light mode, dark mode, or corporate design system - no proprietary skin engine, no separate theme format to learn. For teams that need to retemplate end to end, the Source Code License includes the full control source.

The same WPF HTML editor shown in the default theme and a branded theme
06 Paste From Word and Outlook Without the Mess Your users will paste from Word and Outlook - the only question is what your database receives.

Your users will paste from Word and Outlook - the only question is what your database receives. The editor detects Office clipboard content and cleans it automatically: no MsoNormal noise in saved templates, email bodies, or support replies, and no special button for users to remember.

Need stricter rules? The Pasting event is a checkpoint where your own policy runs before anything enters the document.

Microsoft Word document and WPF HTML editor side by side with an arrow, showing rich formatting preserved after paste
07 Clean HTML Your Database and Email Can Trust One screen saves a fragment into a SQL column; another sends a complete document by email.

One screen saves a fragment into a SQL column; another sends a complete document by email. BodyHtml returns the inner body markup, DocumentHtml the full document with head and doctype - both clean, both ready to store or send, no DOM scraping.

HTML5 output is the default, with overrides available for older render targets.

BodyHtml and DocumentHtml panes shown beneath the editor, both carrying the editor's own clean output
08 Let Users Build Their Own Mail-Merge Templates Templates need fields, not fragile hand-typed tokens.

Templates need fields, not fragile hand-typed tokens. The mail-merge API lets your application define placeholders - customer name, invoice number, renewal date - that users insert at the caret and your code resolves at send time. It turns the editor into a template builder for CRM messages, invoices, and notification emails.

Mail-merge placeholders inserted into an email template in the WPF HTML editor
09 Spell Check Without Deployment Drama Fourteen Hunspell dictionaries are embedded in the control - English (US and GB), German, French, Spanish, Italian, Dutch, Danish, Swedish…

Fourteen Hunspell dictionaries are embedded in the control - English (US and GB), German, French, Spanish, Italian, Dutch, Danish, Swedish, Norwegian, Polish, Czech, and Portuguese (Brazil and Portugal) - so there are no dictionary files to ship. Inline red squiggles, dialog checking, and a per-user custom dictionary work out of the box; any OpenOffice dictionary or your own engine plugs in through ISpellCheckerEngine.

Misspelled words underlined in red in the WPF HTML editor while the spell checker dialog corrects one of them with real suggestions
10 Images That Arrive Clean and Never Break the Layout Screenshots in tickets, logos in signatures, product shots in templates - images arrive from files, URLs, and the clipboard.

Screenshots in tickets, logos in signatures, product shots in templates - images arrive from files, URLs, and the clipboard. Oversized pastes are resized automatically with MaxPastedImageWidth, and EmbedLocalImagesAsBase64() turns local references into portable, self-contained HTML when output leaves the machine.

A 1920 pixel product photo inserted into the WPF editor and automatically constrained to 320 pixels, with the image properties dialog showing the source file, alt text and locked aspect ratio
11 Drive the Whole Editor from Your Own Code Everything the toolbar does, your code can do.

Everything the toolbar does, your code can do. Focused services keep the API discoverable:

  • Content - read, set, transform, and export HTML
  • Formatting and Selection - apply styles and inspect what the user selected
  • StateQuery - drive your own UI state: bold, undoable, inside a table
  • HtmlChanged - dirty flags, save prompts, live previews
  • GetEmailMessageWithLocalImagesEmbedded() - a mail-ready message in one call
C# code driving the WPF HTML editor's Content, Formatting, and StateQuery services
12 Toolbar Icons That Stay Sharp at Every DPI WPF buyers notice when a third-party toolbar looks blurry beside the rest of the application.

WPF buyers notice when a third-party toolbar looks blurry beside the rest of the application. Every toolbar icon is a XAML vector path, not a PNG - crisp at 100%, 150%, and 200% scaling, on 4K monitors and per-monitor DPI setups, with Options.ToolbarIconSize offering small, medium, and large sets. The toolbar lives visually inside your WPF application instead of looking like an older component pasted on top.

Toolbar icon cluster rendered at 100, 150 and 200 percent display scaling with one icon enlarged 32 times, staying crisp
13 The Editor Never Fights Your App's Shortcuts In a real application Ctrl+S, Ctrl+F, and Ctrl+P already mean something.

In a real application Ctrl+S, Ctrl+F, and Ctrl+P already mean something. KeyBindings binds, remaps, disables, or overrides any of 35 editor actions by EditorActionId, so familiar editing shortcuts stay where users expect them - and your application's global commands win whenever they should.

C# code remapping WPF HTML editor shortcuts through KeyBindings and EditorActionId
14 Make the Toolbar Belong to Your App Use the built-in toolbar as shipped, hide commands a role should not see, or add your own XAML buttons beside the standard ones.

Use the built-in toolbar as shipped, hide commands a role should not see, or add your own XAML buttons beside the standard ones. ToolbarItemOverrider intercepts built-in actions and StateQuery keeps custom UI in sync, so the editor follows your product's rules instead of imposing its own.

Custom Insert clause button added to the WPF HTML editor toolbar
15 Feels Native in Your Customers' Language Toolbar, tooltips, dialogs, and context menus ship localized in 14 languages - German, French, Spanish, Italian, Dutch, Portuguese, Polish…

Toolbar, tooltips, dialogs, and context menus ship localized in 14 languages - German, French, Spanish, Italian, Dutch, Portuguese, Polish, Czech, Swedish, Danish, Norwegian, and both English variants - one Language property switches everything. Spell-check language is configured separately through SpellCheckOptions.SpellCheckLanguage, because the application shell and the authored content do not always match.

A German tooltip on the editor toolbar shown magnified, proving the control's own interface is translated
16 Rich Styling Without Teaching Anyone CSS The visual style builder gives users dialog-driven control over fonts, colors, borders, backgrounds, and spacing - more power than plain…

The visual style builder gives users dialog-driven control over fonts, colors, borders, backgrounds, and spacing - more power than plain rich text, with no raw markup in sight. Your own styling pages can sit beside the built-in ones through IEditorStylePage.

Visual CSS style builder dialog open over a document in the WPF HTML editor
17 Need it for WinForms? Building on Windows Forms instead?

Building on Windows Forms instead? A separate WinForms HTML Editor Control exists with its own landing page, documentation, and licensing. Pick the control that matches your UI stack, then test the trial in the application you actually ship.

Supported environments.

.NET Framework

4.5, 4.7.2, 4.8

.NET

5, 6, 7, 8, 9, 10, 11

Visual Studio

2019, 2022, 2026

Terms that have become rare.

01

Your application controls its data.

The built-in editor and spelling review run locally. Your application decides how to store documents and which external resources to load.

02

You buy it once. It is yours.

A true perpetual license, sold this way since 2007. No subscription meter running while you finish the work.

03

One-to-one support from a human domain expert.

Not a chatbot, not a call center. Support is a live conversation with the engineers who build the software. One call away, on Zoom or Teams, free.

From developers who shipped with it.

Sebastian Radloff Sebastian Radloff Consultant and Developer, Comsol Unternehmenslösungen AG, Germany Verified via LinkedIn
Easier customization and implementation of the control saved us a lot of time during development. This WPF Html Editor Control gives our customers the possibility to easily create nice looking E-Mail letters, something that doesn't exist in Dynamics NAV. We also like the quick support response of the SpiceLogic employees.
Sameer Mawid Sameer Mawid Owner, mawid.com Verified via LinkedIn
I've always received very quick, clear, and competent answers to my support requests within a maximum of two or three hours. I searched the internet for an HTML editor for my WPF application. I found several and tested them as trial versions. I have to say that I've been very satisfied since I bought the SpiceLogic WPF HTML Editor Control about a year ago. The software is very easy to use, inexpensive, and the support from this company is exceptional.

Integrating this week? Talk to the engineers who build it.

Every trial and every license includes free live 1:1 sessions on Zoom or Teams. You will talk to a real human, a domain expert who builds this software, and we will help you wire it into your app. No chatbot, no call center, no ticket queue.

Weigh it yourself. The evaluation build is the full control, in your solution, today.

Download samples

The same samples, zipped

Book a live demo

Free, 1:1 with our engineers