Skip to content

shilohooo/Avalonia.Dashboard.Template

Repository files navigation

Avalonia Dashboard Template

Important

🚧 The project is currently under active development and features are subject to change at any time.

A dashboard template for Avalonia UI, including a simple app layout and page navigation:)

This project can be used as a scaffold for building your own application.

Just enjoy it:)

πŸš€ Feature

  • Common app layout: Header, Sidebar, Content
  • Borderless main window
  • Page navigation
  • Dark/Light theme
  • Dependency Injection
  • HotReload
  • Localization
    • en-US
    • zh-CN

πŸ“Έ Screenshots

Demo

πŸ’» Stack

Name Version Docs Remark
.NET 8.0 https://dotnet.microsoft.com/en-us/
Avalonia 11.3.1 https://docs.avaloniaui.net/
CommunityToolkit.Mvvm 8.2.1 https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/
HotAvalonia 3.0.0 https://github.com/Kira-NT/HotAvalonia
Microsoft.Extensions.DependencyInjection 10.0.0-preview.5.25277.114 https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection/
Microsoft.Extensions.Hosting 10.0.0-preview.5.25277.114 https://www.nuget.org/packages/Microsoft.Extensions.Hosting
Microsoft.Extensions.Logging 10.0.0-preview.5.25277.114 https://www.nuget.org/packages/Microsoft.Extensions.Logging
Serilog 4.3 https://serilog.net/
Serilog.Sinks.File 7.0.0 https://github.com/serilog/serilog-sinks-file
Serilog.Extensions.Logging 9.0.2 https://github.com/serilog/serilog-extensions-logging
Serilog.Settings.Configuration 9.0.0 https://github.com/serilog/serilog-settings-configuration
Serilog.Enrichers.Thread 4.0.0 https://github.com/serilog/serilog-enrichers-thread
System Reactive 6.0.1 https://github.com/dotnet/reactive For throttling only
Svg.Controls.Skia.Avalonia 11.3.0.4 https://github.com/wieslawsoltes/Svg.Skia All svg icons are from iconify, see https://icon-sets.iconify.design/material-symbols/ and https://icon-sets.iconify.design/mdi/

πŸ”¨ Build & Publish

Windows

# set single executable file's extract directory of dll and resources before it start
$env:DOTNET_BUNDLE_EXTRACT_BASE_DIR="$env:LOCALAPPDATAC:\dotnet-apps\"
#  build
dotnet publish -c Release \
-r win-x64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true \
-p:PublishTrimmed=false \
-p:UseAppHost=true \
-o D:\MyApp\Release\

Linux

# set single executable file's extract directory of dll and resources before it start
export DOTNET_BUNDLE_EXTRACT_BASE_DIR="$HOME/dotnet-apps/
# buisld
dotnet publish -c Release \
-r linux-x64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:IncludeAllContentForSelfExtract=true
-p:IncludeNativeLibrariesForSelfExtract=true \
-p:PublishTrimmed=false \
-p:UseAppHost=true \

MacOS

# set single executable file's extract directory of dll and resources before it start
export DOTNET_BUNDLE_EXTRACT_BASE_DIR="$HOME/dotnet-apps/
# buisld
dotnet publish -c Release \
# -r osx-x64
-r osx-arm64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:IncludeAllContentForSelfExtract=true
-p:IncludeNativeLibrariesForSelfExtract=true \
-p:PublishTrimmed=false \
-p:UseAppHost=true \

πŸ’ͺ Contributors

Shiloh
Shiloh

πŸ”– License

Copyright Β© 2025-present Shiloh

MIT

About

A dashboard template using Avalonia for building desktop app on Windows, Mac, or Linux πŸ“Š Including a simple app layout and page navigation:)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages