Skip to main content

Installation and Usage

You can install Semi Avalonia via NuGet:

dotnet add package Semi.Avalonia

After installation, you need to reference the Semi Avalonia style file in Application.axaml:

<Application
x:Class="Semi.Avalonia.Demo.App"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:semi="https://irihi.tech/semi">
<Application.Styles>
<semi:SemiTheme/>
</Application.Styles>
</Application>
tip

Semi Avalonia is a completely independent style library. Once referenced, your program no longer needs to use FluentTheme or SimpleTheme. You can safely remove them.

Compatibility Solutions for Other Controls

ColorPicker, DataGrid, and TreeDataGrid are distributed via separate NuGet packages. Install them as needed:

dotnet add package Semi.Avalonia.ColorPicker
dotnet add package Semi.Avalonia.DataGrid
dotnet add package Semi.Avalonia.TreeDataGrid
<Application.Styles>
<StyleInclude Source="avares://Semi.Avalonia.ColorPicker/Index.axaml" />
<StyleInclude Source="avares://Semi.Avalonia.DataGrid/Index.axaml" />
<StyleInclude Source="avares://Semi.Avalonia.TreeDataGrid/Index.axaml" />
</Application.Styles>