-
Notifications
You must be signed in to change notification settings - Fork 114
1. Installation
Notice: when this page was written, the latest Avalonia version was 11.1.0-beta2
with SukiUI version 6.0.0-beta6
SukiUI can be installed in two ways:
- Nuget Recommended
- CI Artifacts from Github Action
The following picture shows packages already installed with the default Avalonia Template
:
In these packages, Avalonia.Themes.Fluent
will no longer be necessary and can be removed.
The Nuget installation is suitable for most users, but if you want to use the latest build, you can download the dll from Github Action after the automatic build.
dotnet add package SukiUI --version 6.0.0
Visit SukiUI on Nuget for more information
- Visit SukiUI CI
- Select the latest workflow
- Download the artifact
- Add reference
- Select
SukiUI.dll
you downloaded
Include SukiUI styles in your App.axaml
<Application
...
xmlns:sukiUi="clr-namespace:SukiUI;assembly=SukiUI"
>
<Application.Styles>
<sukiUi:SukiTheme ThemeColor="Blue" />
</Application.Styles>
</Application>
Change MainWindow from Window class to SukiWindow class.
Original MainWindow.axaml :
Modified MainWindow.axaml :
Original MainWindow.axaml.cs :
Modified MainWindow.axaml.cs :
You're now ready to use SukiUI !
Please read the following 'Theming' section to discover how to theme your app.