Control properties

    Configure native presentation, document binding, resource policy and replaceable services through AvaloniaHtmlEditor properties. Document content and native chrome have separate settings.

    Use standard Avalonia bindings for the bindable HTML properties and awaited exports when saving the latest edited document.

    Actual Avalonia HTML Editor with native toolbars, view controls and formatted content.
    Actual Avalonia HTML Editor with native toolbars, view controls and formatted content.

    Use it in your application

    Set a commercial LicenseKey before constructing any editor. Show the owner window before awaiting Ready.

    BodyHtml is a fragment and DocumentHtml is a full document. Content is the authoring facade; the inherited Child property owns the native visual tree.

    FontFamily and FontSize style native chrome. DefaultFontFamily, DefaultFontSizeInPt and document styling APIs control authored text.

    editor.IsReadOnly = false;
    editor.DefaultFontFamily = "Arial";
    editor.DefaultFontSizeInPt = 11;
    string html = await editor.GetDocumentHtmlAsync();

    Members

    These signatures come from the delivered 1.0.2 assemblies and XML documentation. Cancellation tokens can be supplied to awaited operations. Follow the source-specific notes above when adapting a WPF integration.

    MemberSignature
    AllowExternalResourcesbool AllowExternalResources { get; set; }
    BackgroundImagePathstring BackgroundImagePath { get; set; }
    BaseUrlstring BaseUrl { get; set; }
    BodyCSSClassNamestring BodyCSSClassName { get; set; }
    BodyColorColor BodyColor { get; set; }
    BodyHtmlstring BodyHtml { get; set; }
    BodyStylestring BodyStyle { get; set; }
    BrowserAdapterInfoWebViewAdapterInfo BrowserAdapterInfo { get; }
    CaretICaretService Caret { get; set; }
    Charsetstring Charset { get; set; }
    ContentIContentService Content { get; set; }
    ContextMenuItemsContextMenuItemReferences ContextMenuItems { get; }
    DefaultContextMenuContextMenu DefaultContextMenu { get; }
    DefaultFontFamilystring DefaultFontFamily { get; set; }
    DefaultFontSizeInPtfloat DefaultFontSizeInPt { get; set; }
    DefaultForeColorColor DefaultForeColor { get; set; }
    DialogIDialogService Dialog { get; set; }
    DisableLocalResourceSelectionbool DisableLocalResourceSelection { get; set; }
    DocumentHtmlstring DocumentHtml { get; set; }
    DocumentTitlestring DocumentTitle { get; set; }
    EditorIEditorService Editor { get; set; }
    EditorBorderColorColor EditorBorderColor { get; set; }
    EditorBorderWidthThickness EditorBorderWidth { get; set; }
    EditorContextMenuStripContextMenu EditorContextMenuStrip { get; set; }
    EditorModeEditorModes EditorMode { get; set; }
    EmbedLocalImageAsBase64bool EmbedLocalImageAsBase64 { get; set; }
    EnableInlineSpellCheckingbool EnableInlineSpellChecking { get; set; }
    Focusedbool Focused { get; }
    FontFamilyFontFamily FontFamily { get; set; }
    FontSizedouble FontSize { get; set; }
    FontStretchFontStretch FontStretch { get; set; }
    FontStyleFontStyle FontStyle { get; set; }
    FontWeightFontWeight FontWeight { get; set; }
    FooterTagNavigatorFontInfoFooterTagNavigatorFontInfo FooterTagNavigatorFontInfo { get; set; }
    FooterTagNavigatorTextColorColor FooterTagNavigatorTextColor { get; set; }
    ForegroundIBrush Foreground { get; set; }
    FormattingIFormattingService Formatting { get; set; }
    HeaderStyleContentstring HeaderStyleContent { get; set; }
    HeaderStyleContentElementIDstring HeaderStyleContentElementID { get; set; }
    IsReadOnlybool IsReadOnly { get; set; }
    KeyBindingsKeyBindingsManager KeyBindings { get; }
    LanguageEditorLanguage Language { get; set; }
    LicenseKeystatic string LicenseKey { get; set; }
    LicenseStatusLicenseStatusInfo LicenseStatus { get; }
    MailMergeMailMergeService MailMerge { get; }
    OptionsUserOption Options { get; set; }
    ProductVersionstring ProductVersion { get; }
    ReadyTask Ready { get; }
    ScrollBarSettingScrollBarVisibility ScrollBarSetting { get; set; }
    SearchFindReplaceService Search { get; }
    SelectionISelectionService Selection { get; set; }
    ShowCtrlClickTooltipOnHyperlinksbool ShowCtrlClickTooltipOnHyperlinks { get; set; }
    SnapshotEditorSnapshot Snapshot { get; }
    SourceEditorFontSizedouble SourceEditorFontSize { get; set; }
    SpellCheckLanguagestring SpellCheckLanguage { get; set; }
    SpellCheckOptionsSpellCheckerOption SpellCheckOptions { get; set; }
    StateQueryIStateQueryService StateQuery { get; set; }
    TableAuthoringServiceTableAuthoringService TableAuthoringService { get; }
    Toolbar1FirstToolbar Toolbar1 { get; }
    Toolbar1ItemsItemCollection Toolbar1Items { get; }
    Toolbar1ItemsSourceIEnumerable Toolbar1ItemsSource { get; set; }
    Toolbar2SecondToolbar Toolbar2 { get; }
    Toolbar2ItemsItemCollection Toolbar2Items { get; }
    Toolbar2ItemsSourceIEnumerable Toolbar2ItemsSource { get; set; }
    ToolbarContextMenuStripContextMenu ToolbarContextMenuStrip { get; set; }
    ToolbarFooterFooterToolbar ToolbarFooter { get; }
    ToolbarIconSizeToolbarIconSizes ToolbarIconSize { get; set; }
    ToolbarItemOverriderToolbarItemOverrideHelper ToolbarItemOverrider { get; }
    WordWrapbool WordWrap { get; set; }
    ZoomFactordouble ZoomFactor { get; set; }

    Continue with

    Last updated on Oct 18, 2026

    Put this into practice.

    Start with the C# Avalonia sample. Restore this edition's package and install the native browser prerequisites before running it.

    Prefer a guided look? Book a free live demo with our engineers - live on Zoom or Teams, never a chatbot.