Initialize the built-in theme family

Fluent & Simple Theme Hosts

Select the built-in theme family without coupling application startup to its concrete type.

Explore source
Parent systemThemeManager.Avalonia
StatusMaintained
Modules1
RepositoryThemeManager.Avalonia/ThemeManager

FluentThemeManager and SimpleThemeManager implement one IThemeManager contract and insert the corresponding Avalonia theme into the application style collection.

  1. 01

    Shared IThemeManager contract

  2. 02

    FluentTheme initialization

  3. 03

    SimpleTheme initialization

  4. 04

    Application style insertion

From intent
to working system.

01

Choose

Application composition selects Fluent or Simple implementation.

02

Create

The manager owns the matching Avalonia theme instance.

03

Initialize

The theme is inserted at the front of Application.Styles.

04

Use

Normal Avalonia resources and controls consume the active family.

Adopt this
capability.

Start with the primary module, then add the related packages only when the application needs those layers. Replace VERSION with the current NuGet version.

01 · Install
Terminal
dotnet add package ThemeManager
02 · Use · csharp
QuickStart.cs
IThemeManager themes = new FluentThemeManager();
themes.Initialize(this);
// Or use SimpleThemeManager for Avalonia SimpleTheme.

Use one layer.
Compose the rest.

Read the module beside the complete system.

The implementation, samples, issues, and release notes stay in the parent repository so module details remain connected to the product architecture.

ThemeManager.Avalonia

Search everything.

Loading the index…

move open esc close

Preparing metadata and full-text search…