Dialog service

    Open the editor authoring dialogs or replace their native window factories. Each dialog operates against a captured owner, document and selection context.

    The facade is available as editor.Dialog; its interface can be replaced by an application implementation.

    Actual Avalonia editor showing the document and native authoring controls.
    Actual Avalonia editor showing the document and native authoring controls.

    Use it in your application

    Factories return native Avalonia windows. Use the supplied context for guarded application and preserve modal ownership, validation and cancellation.

    All examples assume an editor named editor, already attached to a visible window, and an awaited editor.Ready. Keep operations asynchronous instead of blocking the UI thread.

    await editor.Dialog.ShowTableDialogAsync();

    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
    ShowColorPickerDialogAsyncTask ShowColorPickerDialogAsync(bool highlight, CancellationToken cancellationToken)
    ShowHyperlinkDialogAsyncTask ShowHyperlinkDialogAsync(CancellationToken cancellationToken)
    ShowImageDialogAsyncTask ShowImageDialogAsync(CancellationToken cancellationToken)
    ShowSearchDialogAsyncTask ShowSearchDialogAsync(CancellationToken cancellationToken)
    ShowSpellCheckerDialogAsyncTask ShowSpellCheckerDialogAsync(CancellationToken cancellationToken)
    ShowStyleBuilderDialogAsyncTask ShowStyleBuilderDialogAsync(CancellationToken cancellationToken)
    ShowSymbolDialogAsyncTask ShowSymbolDialogAsync(CancellationToken cancellationToken)
    ShowTableCellDialogAsyncTask ShowTableCellDialogAsync(CancellationToken cancellationToken)
    ShowTableDialogAsyncTask ShowTableDialogAsync(bool inserting, CancellationToken cancellationToken)
    ShowYouTubeVideoInsertDialogAsyncTask ShowYouTubeVideoInsertDialogAsync(CancellationToken cancellationToken)
    CreateColorPickerDialogMethodFunc<ColorPickerDialogContext, Window> CreateColorPickerDialogMethod { get; set; }
    CreateHyperlinkDialogMethodFunc<HyperlinkDialogContext, Window> CreateHyperlinkDialogMethod { get; set; }
    CreateImageDialogMethodFunc<ImageDialogContext, Window> CreateImageDialogMethod { get; set; }
    CreateSearchDialogMethodFunc<SearchDialogContext, Window> CreateSearchDialogMethod { get; set; }
    CreateSpellcheckerDialogMethodFunc<SpellcheckerDialogContext, Window> CreateSpellcheckerDialogMethod { get; set; }
    CreateStyleBuilderDialogMethodFunc<StyleBuilderDialogContext, Window> CreateStyleBuilderDialogMethod { get; set; }
    CreateSymbolDialogMethodFunc<SymbolDialogContext, Window> CreateSymbolDialogMethod { get; set; }
    CreateTableCellDialogMethodFunc<TableCellDialogContext, Window> CreateTableCellDialogMethod { get; set; }
    CreateTableDialogMethodFunc<TableDialogContext, Window> CreateTableDialogMethod { get; set; }
    CreateYouTubeVideoInsertDialogMethodFunc<YouTubeVideoInsertDialogContext, Window> CreateYouTubeVideoInsertDialogMethod { get; set; }
    OwnerWindowWindow OwnerWindow { 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.