Blazonia 0.0.0-alpha.0.894
dotnet add package Blazonia --version 0.0.0-alpha.0.894
NuGet\Install-Package Blazonia -Version 0.0.0-alpha.0.894
<PackageReference Include="Blazonia" Version="0.0.0-alpha.0.894" />
<PackageVersion Include="Blazonia" Version="0.0.0-alpha.0.894" />
<PackageReference Include="Blazonia" />
paket add Blazonia --version 0.0.0-alpha.0.894
#r "nuget: Blazonia, 0.0.0-alpha.0.894"
#:package Blazonia@0.0.0-alpha.0.894
#addin nuget:?package=Blazonia&version=0.0.0-alpha.0.894&prerelease
#tool nuget:?package=Blazonia&version=0.0.0-alpha.0.894&prerelease
🪢 Blazonia
🤔 What is this?
Blazonia enables developers to use the <a href="https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor">Blazor</a> syntax to build <a href="https://avaloniaui.net/">Avalonia</a> applications. Compared to Avalonia’s original XAML syntax, Blazonia’s Blazor-based approach is more concise and straightforward, allowing you to develop pages using a single file. It is particularly suitable for small to medium-sized client applications.
✨ Note
- 🚫 After using Blazonia, there will be no HTML code or WebView components involved.
- 🤩 Fully utilizes native Avalonia controls
Thanks to Avalonia's cross-platform capabilities, Blazonia enables developers to rapidly build beautiful, pixel-perfect applications for 💻 desktop, 📱 mobile, and 🌐 web platforms.
🌰 A Simple Example
@page "/"
<Window Title="Counter" Width="600" Height="400">
<StackPanel>
<Label FontSize="30">You pressed @_count times </Label>
<CheckBox @bind-IsChecked="_showButton">Button visible</CheckBox>
@if (_showButton! == true)
{
<Button OnClick="OnButtonClick">+1</Button>
}
</StackPanel>
</Window>
@code {
int _count;
bool? _showButton = true;
void OnButtonClick() => _count++;
}
🛫 Start
- Install project template
dotnet new install BlazoniaTemplate
- Create a new project
dotnet new blazonia -o BlazoniaApp
Please use Rider to edit the project, because the code hints of razor files in Visual Studio 2022 and VS Code may fail.
📄 Acknowledge
Blazonia is a fork of the https://github.com/Epictek/Avalonia-Blazor-Bindings branch, maintained by developers including Microsoft, Dreamescaper, warappa, and Epictek.
Blazor's syntax is highly approachable and beginner-friendly. However, since the original repository appears to be inactive, I will continue to maintain this project. As the original name is already taken on NuGet, I have renamed it to Blazonia (Blazor + Avalonia) to facilitate publishing the NuGet package and project template.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Avalonia (>= 11.2.1)
- Avalonia.Controls.ColorPicker (>= 11.2.1)
- Avalonia.Controls.DataGrid (>= 11.2.1)
- Avalonia.Controls.ItemsRepeater (>= 11.1.4)
- Avalonia.Diagnostics (>= 11.2.1)
- Microsoft.AspNetCore.Components (>= 8.0.1)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- OneOf (>= 3.0.271)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Blazonia:
Package | Downloads |
---|---|
Consolonia.Blazor
.NET TUI framework: Avalonia engine, terminal output, modern UX |
|
Blazonia.HelloWorld
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.0.0-alpha.0.894 | 120 | 7/7/2025 |
0.0.0-alpha.0.890 | 138 | 4/21/2025 |
0.0.0-alpha.0.889 | 163 | 4/17/2025 |
0.0.0-alpha.0.888 | 157 | 4/16/2025 |
0.0.0-alpha.0.887 | 154 | 4/16/2025 |
0.0.0-alpha.0.886 | 145 | 4/16/2025 |
0.0.0-alpha.0.882 | 178 | 4/15/2025 |
0.0.0-alpha.0.881 | 164 | 4/15/2025 |
0.0.0-alpha.0.880 | 219 | 4/16/2025 |